summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index e2ba116..a1d1b74 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3681,7 +3681,7 @@ vmapbuf(struct buf *bp)
*/
retry:
if (vm_fault_quick(addr >= bp->b_data ? addr : bp->b_data,
- prot)) {
+ prot) < 0) {
vm_page_lock_queues();
for (i = 0; i < pidx; ++i) {
vm_page_unhold(bp->b_pages[i]);
OpenPOWER on IntegriCloud