summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-05 22:01:08 +0000
committerphk <phk@FreeBSD.org>2003-01-05 22:01:08 +0000
commit97ae520f5d17b0a0ab9cbebb75b1af15a168795d (patch)
treeb8421549253f365c9d15503e19676ce8f6520f97
parentb94ae4e3dbe02b0783732fb0fa1e0684d003b9be (diff)
downloadFreeBSD-src-97ae520f5d17b0a0ab9cbebb75b1af15a168795d.zip
FreeBSD-src-97ae520f5d17b0a0ab9cbebb75b1af15a168795d.tar.gz
Fix cut&paste bug which would result in a panic because buffer was
being biodone'ed multiple times.
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 0c93f80..dbfaa9c 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -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);
}
OpenPOWER on IntegriCloud