mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 12:23:58 +00:00
Do not dereference NULL clearing UA that was not set in r277917.
MFC after: 3 days
This commit is contained in:
parent
55e4579ef2
commit
b7fc0d6732
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278598
|
@ -11712,7 +11712,8 @@ ctl_clear_ua(struct ctl_softc *ctl_softc, uint32_t initidx,
|
|||
STAILQ_FOREACH(lun, &ctl_softc->lun_list, links) {
|
||||
mtx_lock(&lun->lun_lock);
|
||||
pu = lun->pending_ua[initidx / CTL_MAX_INIT_PER_PORT];
|
||||
pu[initidx % CTL_MAX_INIT_PER_PORT] &= ~ua_type;
|
||||
if (pu != NULL)
|
||||
pu[initidx % CTL_MAX_INIT_PER_PORT] &= ~ua_type;
|
||||
mtx_unlock(&lun->lun_lock);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue