isci: clear CCBs allocated on the stack

Reviewed By:	gallatin, imp
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D30303
This commit is contained in:
Edward Tomasz Napierala 2021-05-21 08:10:15 +01:00
parent de992eed78
commit b9353e0b44

View File

@ -186,6 +186,7 @@ isci_io_request_complete(SCI_CONTROLLER_HANDLE_T scif_controller,
cam_sim_path(isci_controller->sim),
isci_remote_device->index, 0);
memset(&ccb_relsim, 0, sizeof(ccb_relsim));
xpt_setup_ccb(&ccb_relsim.ccb_h, path, 5);
ccb_relsim.ccb_h.func_code = XPT_REL_SIMQ;
ccb_relsim.ccb_h.flags = CAM_DEV_QFREEZE;