mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fix cut&paste bug which would result in a panic because buffer was
being biodone'ed multiple times.
This commit is contained in:
parent
ff263ea2dc
commit
ea4804130a
1 changed files with 2 additions and 2 deletions
|
|
@ -724,9 +724,9 @@ breadn(struct vnode * vp, daddr_t blkno, int size,
|
|||
vfs_busy_pages(rabp, 0);
|
||||
BUF_KERNPROC(rabp);
|
||||
if (vp->v_type == VCHR)
|
||||
VOP_SPECSTRATEGY(vp, bp);
|
||||
VOP_SPECSTRATEGY(vp, rabp);
|
||||
else
|
||||
VOP_STRATEGY(vp, bp);
|
||||
VOP_STRATEGY(vp, rabp);
|
||||
} else {
|
||||
brelse(rabp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue