diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 0a14dbb351f4..ac1314480c39 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -1887,7 +1887,7 @@ static ssize_t fuse_dev_do_write(struct fuse_dev *fud, } err = -EINVAL; - if (oh.error <= -1000 || oh.error > 0) + if (oh.error <= -512 || oh.error > 0) goto err_finish; spin_lock(&fpq->lock);