[PATCH] double dput() on failure exit in tiny-shmem
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
430e285e08
commit
8a03feab32
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue