The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=7608b98c4394590840a53d2b38b908582253de32
commit 7608b98c4394590840a53d2b38b908582253de32 Author: Edward Tomasz Napierala <tr...@freebsd.org> AuthorDate: 2021-05-21 06:42:08 +0000 Commit: Edward Tomasz Napierala <tr...@freebsd.org> CommitDate: 2021-05-21 06:42:13 +0000 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 --- sys/dev/mpr/mpr_sas.c | 1 + sys/dev/mps/mps_sas.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/dev/mpr/mpr_sas.c b/sys/dev/mpr/mpr_sas.c index a60881553f01..7c6bc110069a 100644 --- a/sys/dev/mpr/mpr_sas.c +++ b/sys/dev/mpr/mpr_sas.c @@ -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; diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c index 97160a40ce08..e961b3fd826c 100644 --- a/sys/dev/mps/mps_sas.c +++ b/sys/dev/mps/mps_sas.c @@ -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; _______________________________________________ dev-commits-src-main@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"