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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user