summaryrefslogtreecommitdiff
path: root/isofs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 13:51:35 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 13:52:11 +0200
commit35cfab06b50bc48dbf8fd2178197f52a8cfc2963 (patch)
tree04e0a695f5eddf58d76fe3cfb5e8798f8816f022 /isofs
parent07cb61069ee68d3191fc6067947082b15c4408ca (diff)
Properly return error
* isofs/pager.c (pager_read_page): Return error returned by `store_read`, if any.
Diffstat (limited to 'isofs')
-rw-r--r--isofs/pager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/isofs/pager.c b/isofs/pager.c
index 7a38ba33..d72a5144 100644
--- a/isofs/pager.c
+++ b/isofs/pager.c
@@ -68,6 +68,9 @@ pager_read_page (struct user_pager_info *upi,
}
err = store_read (store, addr, vm_page_size, (void **) buf, &read);
+ if (err)
+ return err;
+
if (read != vm_page_size)
return EIO;