git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NFSd: Move default initialisers from create_client() to alloc_client()
[pandora-kernel.git]
/
fs
/
autofs4
/
dev-ioctl.c
diff --git
a/fs/autofs4/dev-ioctl.c
b/fs/autofs4/dev-ioctl.c
index
509fe1e
..
de54271
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;