Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2017 13:14:06 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315001 - head/sys/dev/mpt
Message-ID:  <201703101314.v2ADE6CK052768@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Mar 10 13:14:06 2017
New Revision: 315001
URL: https://svnweb.freebsd.org/changeset/base/315001

Log:
  Fix panic on wildcard target LUN disable.
  
  MFC after:	2 weeks

Modified:
  head/sys/dev/mpt/mpt_cam.c

Modified: head/sys/dev/mpt/mpt_cam.c
==============================================================================
--- head/sys/dev/mpt/mpt_cam.c	Fri Mar 10 11:44:09 2017	(r315000)
+++ head/sys/dev/mpt/mpt_cam.c	Fri Mar 10 13:14:06 2017	(r315001)
@@ -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?201703101314.v2ADE6CK052768>