mpr, mps: clear CCBs allocated on the stack

Reviewed By:	imp
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D30301
This commit is contained in:
Edward Tomasz Napierala 2021-05-21 07:42:08 +01:00
parent d39aac796b
commit 7608b98c43
2 changed files with 2 additions and 0 deletions

View File

@ -3358,6 +3358,7 @@ mprsas_async(void *callback_arg, uint32_t code, struct cam_path *path,
}
bzero(&rcap_buf, sizeof(rcap_buf));
bzero(&cdai, sizeof(cdai));
xpt_setup_ccb(&cdai.ccb_h, path, CAM_PRIORITY_NORMAL);
cdai.ccb_h.func_code = XPT_DEV_ADVINFO;
cdai.ccb_h.flags = CAM_DIR_IN;

View File

@ -3204,6 +3204,7 @@ mpssas_async(void *callback_arg, uint32_t code, struct cam_path *path,
}
bzero(&rcap_buf, sizeof(rcap_buf));
bzero(&cdai, sizeof(cdai));
xpt_setup_ccb(&cdai.ccb_h, path, CAM_PRIORITY_NORMAL);
cdai.ccb_h.func_code = XPT_DEV_ADVINFO;
cdai.ccb_h.flags = CAM_DIR_IN;