mirror of
https://github.com/torvalds/linux
synced 2024-11-02 18:48:59 +00:00
[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>
This commit is contained in:
parent
521b5d0c40
commit
ed15243717
1 changed files with 3 additions and 0 deletions
|
@ -988,7 +988,10 @@ struct file *create_write_pipe(void)
|
|||
return f;
|
||||
|
||||
err_dentry:
|
||||
free_pipe_info(inode);
|
||||
dput(dentry);
|
||||
return ERR_PTR(err);
|
||||
|
||||
err_inode:
|
||||
free_pipe_info(inode);
|
||||
iput(inode);
|
||||
|
|
Loading…
Reference in a new issue