Date: Fri, 28 May 2021 22:42:44 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: e20e60be5012 - main - smartpqi: clear CCBs allocated on the stack Message-ID: <202105282242.14SMgiIS034602@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e20e60be501204c3ba742e266afecc6c6e498a6c commit e20e60be501204c3ba742e266afecc6c6e498a6c Author: Edward Tomasz Napierala <trasz@FreeBSD.org> AuthorDate: 2021-05-28 06:33:37 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-05-28 22:40:24 +0000 smartpqi: clear CCBs allocated on the stack Differential Revision: https://reviews.freebsd.org/D30299 Sponsored by: Netflix --- sys/dev/smartpqi/smartpqi_cam.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/smartpqi/smartpqi_cam.c b/sys/dev/smartpqi/smartpqi_cam.c index 3d39e1ffbdd4..e389eb143e4a 100644 --- a/sys/dev/smartpqi/smartpqi_cam.c +++ b/sys/dev/smartpqi/smartpqi_cam.c @@ -1140,6 +1140,7 @@ smartpqi_adjust_queue_depth(struct cam_path *path, uint32_t queue_depth) DBG_INFO("IN\n"); + 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; @@ -1262,6 +1263,7 @@ register_sim(struct pqisrc_softstate *softs, int card_index) * derived from the FW. */ softs->os_specific.path = ccb->ccb_h.path; + memset(&csa, 0, sizeof(csa)); xpt_setup_ccb(&csa.ccb_h, softs->os_specific.path, 5); csa.ccb_h.func_code = XPT_SASYNC_CB; csa.event_enable = AC_FOUND_DEVICE; @@ -1294,6 +1296,7 @@ deregister_sim(struct pqisrc_softstate *softs) } + memset(&csa, 0, sizeof(csa)); xpt_setup_ccb(&csa.ccb_h, softs->os_specific.path, 5); csa.ccb_h.func_code = XPT_SASYNC_CB; csa.event_enable = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105282242.14SMgiIS034602>