Page MenuHomeFreeBSD

D30300.diff
No OneTemporary

D30300.diff

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

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)

Event Timeline