Date: Wed, 6 May 2009 18:27:29 +0000 (UTC) From: Ulf Lilleengen <lulf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r191852 - head/sys/geom/vinum Message-ID: <200905061827.n46IRTH1026058@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905061827.n46IRTH1026058>