Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44855
b: refs/heads/master
c: 5ccac88
h: refs/heads/master
i:
  44853: 805c60f
  44851: a43a9c3
  44847: d89a4e8
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Dec 21, 2006
1 parent 0334ab1 commit c3101fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba6d8b1eba88665d12edd53385d3e26fce5613a3
refs/heads/master: 5ccac88eeb5659c716af8e695e2943509c80d172
5 changes: 4 additions & 1 deletion trunk/fs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,8 +935,9 @@ struct file *create_write_pipe(void)

void free_write_pipe(struct file *f)
{
mntput(f->f_path.mnt);
free_pipe_info(f->f_dentry->d_inode);
dput(f->f_path.dentry);
mntput(f->f_path.mnt);
put_filp(f);
}

Expand Down Expand Up @@ -994,6 +995,8 @@ int do_pipe(int *fd)
err_fdr:
put_unused_fd(fdr);
err_read_pipe:
dput(fr->f_dentry);
mntput(fr->f_vfsmnt);
put_filp(fr);
err_write_pipe:
free_write_pipe(fw);
Expand Down

0 comments on commit c3101fd

Please sign in to comment.