Skip to content

Commit

Permalink
[PATCH] double dput() on failure exit in tiny-shmem
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 19, 2008
1 parent 430e285 commit 8a03fea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm/tiny-shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8a03fea

Please sign in to comment.