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:
parent
d39aac796b
commit
7608b98c43
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user