X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fautofs4%2Fdev-ioctl.c;h=de542716245e0cf0648f07f11ac2001f1e61e115;hb=9f8b7c3919e494881697db355b8b8b33400d740e;hp=509fe1eb66ae31babcceda94ab8fd0a04268ebcb;hpb=17c6dd8144924e3c71930636091704da6d043536;p=pandora-kernel.git diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index 509fe1eb66ae..de542716245e 100644 --- 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;