svn commit: r289819 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Fri Oct 23 10:39:45 UTC 2015


Author: mav
Date: Fri Oct 23 10:39:43 2015
New Revision: 289819
URL: https://svnweb.freebsd.org/changeset/base/289819

Log:
  Fix LUN disable in CAM broken at r285155.
  
  MFC after:	1 week

Modified:
  head/sys/cam/ctl/scsi_ctl.c

Modified: head/sys/cam/ctl/scsi_ctl.c
==============================================================================
--- head/sys/cam/ctl/scsi_ctl.c	Fri Oct 23 10:05:43 2015	(r289818)
+++ head/sys/cam/ctl/scsi_ctl.c	Fri Oct 23 10:39:43 2015	(r289819)
@@ -1879,7 +1879,7 @@ ctlfe_lun_disable(void *arg, int lun_id)
 
 		path = lun_softc->periph->path;
 
-		if ((xpt_path_target_id(path) == 0)
+		if ((xpt_path_target_id(path) == softc->target_id)
 		 && (xpt_path_lun_id(path) == lun_id)) {
 			break;
 		}


More information about the svn-src-head mailing list