From: Al Viro Date: Sat, 23 Feb 2008 10:46:50 +0000 (-0500) Subject: [PATCH] double dput() on failure exit in tiny-shmem X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8a03feab32dceb78b9b1edf220e833d36d416b00;p=linux-beck.git [PATCH] double dput() on failure exit in tiny-shmem Signed-off-by: Al Viro --- diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index 702083638c16..a63ee939178b 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c @@ -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: