Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2018 16:58:56 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338913 - head/sys/geom/raid
Message-ID:  <201809241658.w8OGwusD003709@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Mon Sep 24 16:58:55 2018
New Revision: 338913
URL: https://svnweb.freebsd.org/changeset/base/338913

Log:
  Fix use-after-free in RAID0 error reporting of GEOM_RAID.
  
  PR:		231510
  Submitted by:	yangx92@hotmail.com
  Approved by:	re (gjb)
  MFC after:	1 week

Modified:
  head/sys/geom/raid/tr_raid0.c

Modified: head/sys/geom/raid/tr_raid0.c
==============================================================================
--- head/sys/geom/raid/tr_raid0.c	Mon Sep 24 16:49:02 2018	(r338912)
+++ head/sys/geom/raid/tr_raid0.c	Mon Sep 24 16:58:55 2018	(r338913)
@@ -323,7 +323,7 @@ g_raid_tr_iodone_raid0(struct g_raid_tr_object *tr,
 	pbp->bio_inbed++;
 	if (pbp->bio_children == pbp->bio_inbed) {
 		pbp->bio_completed = pbp->bio_length;
-		g_raid_iodone(pbp, bp->bio_error);
+		g_raid_iodone(pbp, pbp->bio_error);
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809241658.w8OGwusD003709>