svn commit: r187245 - head/sys/cam

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Jan 14 13:29:24 PST 2009


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;
 	}
 


More information about the svn-src-head mailing list