Check return value from vmapbuf instead of the function address.

This commit is contained in:
Tor Egge 2003-03-27 20:48:34 +00:00
parent 8cd5699048
commit 5e2e6a67c4

View file

@ -247,8 +247,7 @@ ffs_rawread_readahead(struct vnode *vp,
bp->b_blkno += blockoff;
bp->b_dev = dp->v_rdev;
vmapbuf(bp);
if (vmapbuf < 0)
if (vmapbuf(bp) < 0)
return EFAULT;
if (dp->v_type == VCHR)