Fix panic on wildcard target LUN disable.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2017-03-10 13:14:06 +00:00
parent 8f2cc27067
commit 4461a4a5ed

View File

@ -4319,7 +4319,7 @@ mpt_disable_lun(struct mpt_softc *mpt, target_id_t tgt, lun_id_t lun)
mpt->trt[lun].enabled = 0;
}
for (i = 0; i < MPT_MAX_LUNS; i++) {
if (mpt->trt[lun].enabled) {
if (mpt->trt[i].enabled) {
break;
}
}