Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103716474
D30300.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
970 B
Referenced Files
None
Subscribers
None
D30300.diff
View Options
diff --git a/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c b/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
--- a/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
+++ b/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
@@ -470,6 +470,7 @@
void agtiapi_adjust_queue_depth(struct cam_path *path, bit32 QueueDepth)
{
struct ccb_relsim crs;
+ 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;
@@ -929,6 +930,7 @@
return( EIO );
}
pmsc->path = ccb->ccb_h.path;
+ memset(&csa, 0, sizeof(csa));
xpt_setup_ccb(&csa.ccb_h, pmsc->path, 5);
csa.ccb_h.func_code = XPT_SASYNC_CB;
csa.event_enable = AC_FOUND_DEVICE;
@@ -6545,6 +6547,7 @@
if (pCard->sim != NULL)
{
mtx_lock(&thisCardInst->pmIOLock);
+ memset(&csa, 0, sizeof(csa));
xpt_setup_ccb(&csa.ccb_h, pCard->path, 5);
csa.ccb_h.func_code = XPT_SASYNC_CB;
csa.event_enable = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 10:25 AM (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14925895
Default Alt Text
D30300.diff (970 B)
Attached To
Mode
D30300: pms(4): clear CCBs allocated on the stack
Attached
Detach File
Event Timeline
Log In to Comment