projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
autofs: make the autofsv5 packet file descriptor use a packetized pipe
[cascardo/linux.git]
/
fs
/
autofs4
/
dev-ioctl.c
diff --git
a/fs/autofs4/dev-ioctl.c
b/fs/autofs4/dev-ioctl.c
index
3dfd615
..
aa9103f
100644
(file)
--- a/
fs/autofs4/dev-ioctl.c
+++ b/
fs/autofs4/dev-ioctl.c
@@
-376,7
+376,7
@@
static int autofs_dev_ioctl_setpipefd(struct file *fp,
err = -EBADF;
goto out;
}
- if (
!pipe->f_op || !pipe->f_op->write
) {
+ if (
autofs_prepare_pipe(pipe) < 0
) {
err = -EPIPE;
fput(pipe);
goto out;