Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139591819
D30854.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
625 B
Referenced Files
None
Subscribers
None
D30854.diff
View Options
diff --git a/sys/cam/mmc/mmc_xpt.c b/sys/cam/mmc/mmc_xpt.c
--- a/sys/cam/mmc/mmc_xpt.c
+++ b/sys/cam/mmc/mmc_xpt.c
@@ -406,8 +406,6 @@
union ccb *ccb;
uint32_t pathid;
- KASSERT(sim->sim_dev != NULL, ("mmccam_start_discovery(%s): sim_dev is not initialized,"
- " has cam_sim_alloc_dev() been used?", cam_sim_name(sim)));
pathid = cam_sim_path(sim);
ccb = xpt_alloc_ccb();
@@ -420,6 +418,10 @@
xpt_free_ccb(ccb);
return;
}
+
+ KASSERT(xpt_path_sim_device(&ccb->ccb_h.path) != NULL,
+ ("%s(%s): device is not initialized on sim's path",
+ __func__, cam_sim_name(sim)));
xpt_rescan(ccb);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 14, 10:22 PM (4 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26968221
Default Alt Text
D30854.diff (625 B)
Attached To
Mode
D30854: cam mmc: Assert that the xpt_bus_register registered a device_t
Attached
Detach File
Event Timeline
Log In to Comment