svn commit: r315822 - stable/11/sys/dev/mpt
Alexander Motin
mav at FreeBSD.org
Thu Mar 23 06:49:38 UTC 2017
Author: mav
Date: Thu Mar 23 06:49:36 2017
New Revision: 315822
URL: https://svnweb.freebsd.org/changeset/base/315822
Log:
MFC r315001: Fix panic on wildcard target LUN disable.
Modified:
stable/11/sys/dev/mpt/mpt_cam.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/mpt/mpt_cam.c
==============================================================================
--- stable/11/sys/dev/mpt/mpt_cam.c Thu Mar 23 06:49:01 2017 (r315821)
+++ stable/11/sys/dev/mpt/mpt_cam.c Thu Mar 23 06:49:36 2017 (r315822)
@@ -4319,7 +4319,7 @@ mpt_disable_lun(struct mpt_softc *mpt, t
mpt->trt[lun].enabled = 0;
}
for (i = 0; i < MPT_MAX_LUNS; i++) {
- if (mpt->trt[lun].enabled) {
+ if (mpt->trt[i].enabled) {
break;
}
}
More information about the svn-src-stable
mailing list