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;
                }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to