Author: mav
Date: Fri Oct 30 00:30:00 2015
New Revision: 290172
URL: https://svnweb.freebsd.org/changeset/base/290172

Log:
  MFC r289819: Fix LUN disable in CAM broken at r285155.

Modified:
  stable/10/sys/cam/ctl/scsi_ctl.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/ctl/scsi_ctl.c
==============================================================================
--- stable/10/sys/cam/ctl/scsi_ctl.c    Fri Oct 30 00:24:37 2015        
(r290171)
+++ stable/10/sys/cam/ctl/scsi_ctl.c    Fri Oct 30 00:30:00 2015        
(r290172)
@@ -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;
                }
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to