Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2009 21:29:20 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187245 - head/sys/cam
Message-ID:  <200901142129.n0ELTKd4054506@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Wed Jan 14 21:29:20 2009
New Revision: 187245
URL: http://svn.freebsd.org/changeset/base/187245

Log:
  Fix use after free.
  
  Reviewed by:	scottl
  Approved by:	rwatson (mentor)
  Sponsored by:	FreeBSD Foundation
  Found with:	Coverity Prevent(tm)
  CID:		3712

Modified:
  head/sys/cam/cam_xpt.c

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c	Wed Jan 14 21:27:30 2009	(r187244)
+++ head/sys/cam/cam_xpt.c	Wed Jan 14 21:29:20 2009	(r187245)
@@ -6137,7 +6137,7 @@ probedone(struct cam_periph *periph, uni
 		}
 		xpt_release_ccb(done_ccb);
 		softc->action = PROBE_TUR_FOR_NEGOTIATION;
-		xpt_schedule(periph, done_ccb->ccb_h.pinfo.priority);
+		xpt_schedule(periph, priority);
 		return;
 	}
 



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