commit | ed1524371716466e9c762808b02601d0d0276a92 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Tue Apr 22 19:51:27 2008 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Apr 22 19:54:57 2008 -0400 |
tree | 73a9f836f54164f70649a318fe775638c79417b8 | |
parent | 521b5d0c40386f4a9805cdec7bd979fc96a86aeb [diff] |
[PATCH] double-free of inode on alloc_file() failure exit in create_write_pipe() Duh... Fortunately, the bug is quite recent (post-2.6.25) and, embarrassingly, mine ;-/ Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/pipe.c b/fs/pipe.c index 8be381b..f73492b 100644 --- a/fs/pipe.c +++ b/fs/pipe.c
@@ -988,7 +988,10 @@ return f; err_dentry: + free_pipe_info(inode); dput(dentry); + return ERR_PTR(err); + err_inode: free_pipe_info(inode); iput(inode);