Fix use after free.

Reviewed by:	scottl
Approved by:	rwatson (mentor)
Sponsored by:	FreeBSD Foundation
Found with:	Coverity Prevent(tm)
CID:		3712
This commit is contained in:
Edward Tomasz Napierala 2009-01-14 21:29:20 +00:00
parent c654e30995
commit f96b106236
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187245

View File

@ -6137,7 +6137,7 @@ probedone(struct cam_periph *periph, union ccb *done_ccb)
}
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;
}