mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
mmccam: Hold the periph during init
We need to sleep during this routine so acquire the cam hold too. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D25946
This commit is contained in:
parent
cd2f74af6f
commit
f2df51ecc5
1 changed files with 2 additions and 0 deletions
|
|
@ -1109,7 +1109,9 @@ sdda_start_init_task(void *context, int pending) {
|
|||
CAM_PRIORITY_NONE);
|
||||
|
||||
cam_periph_lock(periph);
|
||||
cam_periph_hold(periph, PRIBIO|PCATCH);
|
||||
sdda_start_init(context, new_ccb);
|
||||
cam_periph_unhold(periph);
|
||||
cam_periph_unlock(periph);
|
||||
xpt_free_ccb(new_ccb);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue