aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index cc6c2908fb12..db534bcde45f 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -747,11 +747,12 @@ static ssize_t fuse_dev_read(struct kiocb *iocb, const struct iovec *iov,
747 fuse_copy_finish(&cs); 747 fuse_copy_finish(&cs);
748 spin_lock(&fc->lock); 748 spin_lock(&fc->lock);
749 req->locked = 0; 749 req->locked = 0;
750 if (!err && req->aborted) 750 if (req->aborted) {
751 err = -ENOENT; 751 request_end(fc, req);
752 return -ENODEV;
753 }
752 if (err) { 754 if (err) {
753 if (!req->aborted) 755 req->out.h.error = -EIO;
754 req->out.h.error = -EIO;
755 request_end(fc, req); 756 request_end(fc, req);
756 return err; 757 return err;
757 } 758 }