X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=fs%2Fautofs4%2Fdev-ioctl.c;h=ebedfb741cc375ad02ca56a571fd71e9108c5bfc;hp=0769e2efe49eba1eef022af36f601a82552affb2;hb=94b798ff0d7d4c30e38f9b61fc29fd17472221f9;hpb=79b925fd67c0de25ef07ee46f9bd82e2ee44dd54;ds=inline diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index 0769e2efe49e..ebedfb741cc3 100644 --- a/fs/autofs4/dev-ioctl.c +++ b/fs/autofs4/dev-ioctl.c @@ -345,7 +345,7 @@ static int autofs_dev_ioctl_fail(struct file *fp, int status; token = (autofs_wqt_t) param->fail.token; - status = param->fail.status ? param->fail.status : -ENOENT; + status = param->fail.status < 0 ? param->fail.status : -ENOENT; return autofs4_wait_release(sbi, token, status); }