mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Check return value from vmapbuf instead of the function address.
This commit is contained in:
parent
8cd5699048
commit
5e2e6a67c4
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue