Date: Thu, 23 Mar 2017 06:49:37 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315822 - stable/11/sys/dev/mpt Message-ID: <201703230649.v2N6nb11057250@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703230649.v2N6nb11057250>