Do not dereference NULL clearing UA that was not set in r277917.

MFC after:	3 days
This commit is contained in:
Alexander Motin 2015-02-11 22:03:23 +00:00
parent 55e4579ef2
commit b7fc0d6732
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278598

View file

@ -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);
}
}