diff options
author | mav <mav@FreeBSD.org> | 2015-10-30 00:30:00 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-10-30 00:30:00 +0000 |
commit | cc36be8f3e7593c10a7c9fbe77e910fc75d500b3 (patch) | |
tree | 6759fc7dafb711ec2915d88b12bc9d5a5a78d429 /sys/cam | |
parent | e6f47aa69657cac8d80c4361b92a4443b7540770 (diff) | |
download | FreeBSD-src-cc36be8f3e7593c10a7c9fbe77e910fc75d500b3.zip FreeBSD-src-cc36be8f3e7593c10a7c9fbe77e910fc75d500b3.tar.gz |
MFC r289819: Fix LUN disable in CAM broken at r285155.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/ctl/scsi_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/scsi_ctl.c b/sys/cam/ctl/scsi_ctl.c index 25c745b..27c5ad7 100644 --- a/sys/cam/ctl/scsi_ctl.c +++ b/sys/cam/ctl/scsi_ctl.c @@ -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; } |