Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153842775
D6100.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
736 B
Referenced Files
None
Subscribers
None
D6100.diff
View Options
Index: head/sys/dev/mpr/mpr_sas.c
===================================================================
--- head/sys/dev/mpr/mpr_sas.c
+++ head/sys/dev/mpr/mpr_sas.c
@@ -243,6 +243,8 @@
void
mprsas_free_tm(struct mpr_softc *sc, struct mpr_command *tm)
{
+ int target_id = 0xFFFFFFFF;
+
MPR_FUNCTRACE(sc);
if (tm == NULL)
return;
@@ -254,10 +256,11 @@
*/
if (tm->cm_targ != NULL) {
tm->cm_targ->flags &= ~MPRSAS_TARGET_INRESET;
+ target_id = tm->cm_targ->tid;
}
if (tm->cm_ccb) {
mpr_dprint(sc, MPR_INFO, "Unfreezing devq for target ID %d\n",
- tm->cm_targ->tid);
+ target_id);
xpt_release_devq(tm->cm_ccb->ccb_h.path, 1, TRUE);
xpt_free_path(tm->cm_ccb->ccb_h.path);
xpt_free_ccb(tm->cm_ccb);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 25, 4:53 AM (8 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32109965
Default Alt Text
D6100.diff (736 B)
Attached To
Mode
D6100: Prevent use of invalid pointer when getting target ID
Attached
Detach File
Event Timeline
Log In to Comment