[PATCH] double dput() on failure exit in tiny-shmem
Al Viro [Sat, 23 Feb 2008 10:46:50 +0000 (05:46 -0500)]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

mm/tiny-shmem.c

index 7020836..a63ee93 100644 (file)
@@ -89,6 +89,8 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
 
 close_file:
        put_filp(file);
+       return ERR_PTR(error);
+
 put_dentry:
        dput(dentry);
 put_memory: