Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242339
b: refs/heads/master
c: 3dc8fe4
h: refs/heads/master
i:
  242337: f20ae23
  242335: 8830b6d
v: v3
  • Loading branch information
Jesper Juhl authored and Al Viro committed Mar 24, 2011
1 parent a04a484 commit 66646cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7854723d0f3626f260c880d8db8e5136f29db19
refs/heads/master: 3dc8fe4dca9cd3e4aa828ed36451e2bcfd2350da
4 changes: 4 additions & 0 deletions trunk/fs/autofs4/dev-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ static int autofs_dev_ioctl_setpipefd(struct file *fp,
return -EBUSY;
} else {
struct file *pipe = fget(pipefd);
if (!pipe) {
err = -EBADF;
goto out;
}
if (!pipe->f_op || !pipe->f_op->write) {
err = -EPIPE;
fput(pipe);
Expand Down

0 comments on commit 66646cb

Please sign in to comment.