[PATCH] double dput() on failure exit in tiny-shmem

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2008-02-23 05:46:50 -05:00
parent 430e285e08
commit 8a03feab32
1 changed files with 2 additions and 0 deletions

View File

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