Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157300171
D30299.id90096.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
795 B
Referenced Files
None
Subscribers
None
D30299.id90096.diff
View Options
diff --git a/sys/dev/smartpqi/smartpqi_cam.c b/sys/dev/smartpqi/smartpqi_cam.c
--- a/sys/dev/smartpqi/smartpqi_cam.c
+++ b/sys/dev/smartpqi/smartpqi_cam.c
@@ -1140,6 +1140,7 @@
DBG_INFO("IN\n");
+ memset(&crs, 0, sizeof(crs));
xpt_setup_ccb(&crs.ccb_h, path, 5);
crs.ccb_h.func_code = XPT_REL_SIMQ;
crs.ccb_h.flags = CAM_DEV_QFREEZE;
@@ -1262,6 +1263,7 @@
* derived from the FW.
*/
softs->os_specific.path = ccb->ccb_h.path;
+ memset(&csa, 0, sizeof(csa));
xpt_setup_ccb(&csa.ccb_h, softs->os_specific.path, 5);
csa.ccb_h.func_code = XPT_SASYNC_CB;
csa.event_enable = AC_FOUND_DEVICE;
@@ -1294,6 +1296,7 @@
}
+ memset(&csa, 0, sizeof(csa));
xpt_setup_ccb(&csa.ccb_h, softs->os_specific.path, 5);
csa.ccb_h.func_code = XPT_SASYNC_CB;
csa.event_enable = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 21, 3:37 AM (11 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33371871
Default Alt Text
D30299.id90096.diff (795 B)
Attached To
Mode
D30299: smartpqi: clear CCBs allocated on the stack
Attached
Detach File
Event Timeline
Log In to Comment