svn commit: r191852 - head/sys/geom/vinum
Ulf Lilleengen
lulf at FreeBSD.org
Wed May 6 18:27:29 UTC 2009
Author: lulf
Date: Wed May 6 18:27:28 2009
New Revision: 191852
URL: http://svn.freebsd.org/changeset/base/191852
Log:
- Fix a bug where the bio_data field of the wrong BIO is freed if an error
occurs when doing a RAID5 request.
Modified:
head/sys/geom/vinum/geom_vinum_raid5.c
Modified: head/sys/geom/vinum/geom_vinum_raid5.c
==============================================================================
--- head/sys/geom/vinum/geom_vinum_raid5.c Wed May 6 18:27:12 2009 (r191851)
+++ head/sys/geom/vinum/geom_vinum_raid5.c Wed May 6 18:27:28 2009 (r191852)
@@ -122,7 +122,7 @@ gv_raid5_start(struct gv_plex *p, struct
/* 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 |
More information about the svn-src-all
mailing list