arcmsr: clear CCB allocated on the stack

Reviewed By:	delphij, imp
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D30304
This commit is contained in:
Edward Tomasz Napierala
2021-05-21 08:21:45 +01:00
parent b9353e0b44
commit 45f57ce122
+1
View File
@@ -4957,6 +4957,7 @@ static int arcmsr_attach(device_t dev)
/*
****************************************************
*/
memset(&csa, 0, sizeof(csa));
xpt_setup_ccb(&csa.ccb_h, acb->ppath, /*priority*/5);
csa.ccb_h.func_code = XPT_SASYNC_CB;
csa.event_enable = AC_FOUND_DEVICE|AC_LOST_DEVICE;