Commit 8a03feab authored by Al Viro's avatar Al Viro

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

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 430e285e
...@@ -89,6 +89,8 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags) ...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment