summaryrefslogtreecommitdiffstats
path: root/sys/geom/vinum
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2009-05-06 18:27:28 +0000
committerlulf <lulf@FreeBSD.org>2009-05-06 18:27:28 +0000
commit9192c52290fc804e1dfce512b4bb5c5ad8853e3b (patch)
treec0866cfc1cf4b74f0f3223db5d530288da800777 /sys/geom/vinum
parent5ef86e69f292cf3ac9baf2fe47f378102c0cd05d (diff)
downloadFreeBSD-src-9192c52290fc804e1dfce512b4bb5c5ad8853e3b.zip
FreeBSD-src-9192c52290fc804e1dfce512b4bb5c5ad8853e3b.tar.gz
- Fix a bug where the bio_data field of the wrong BIO is freed if an error
occurs when doing a RAID5 request.
Diffstat (limited to 'sys/geom/vinum')
-rw-r--r--sys/geom/vinum/geom_vinum_raid5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/vinum/geom_vinum_raid5.c b/sys/geom/vinum/geom_vinum_raid5.c
index 088162e..8ea2926 100644
--- a/sys/geom/vinum/geom_vinum_raid5.c
+++ b/sys/geom/vinum/geom_vinum_raid5.c
@@ -122,7 +122,7 @@ gv_raid5_start(struct gv_plex *p, struct bio *bp, caddr_t addr, off_t boff,
/* If internal, stop and reset state. */
if (bp->bio_cflags & GV_BIO_INTERNAL) {
if (bp->bio_cflags & GV_BIO_MALLOC)
- g_free(cbp->bio_data);
+ g_free(bp->bio_data);
g_destroy_bio(bp);
/* Reset flags. */
p->flags &= ~(GV_PLEX_SYNCING | GV_PLEX_REBUILDING |
OpenPOWER on IntegriCloud