PERFORCE change 177507 for review

Alexander Motin mav at FreeBSD.org
Fri Apr 30 07:50:24 UTC 2010


http://p4web.freebsd.org/@@177507?ac=10

Change 177507 by mav at mav_mavtest on 2010/04/30 07:49:57

	Do not allow access to devices 1-14 when PMP presence not detected.
	Usual SATA devices are not checking PMP field in requests.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/dev/mvs/mvs.c#21 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/dev/mvs/mvs.c#21 (text+ko) ====

@@ -1988,7 +1988,9 @@
 	case XPT_SCSI_IO:
 		if (mvs_check_ids(dev, ccb))
 			return;
-		if (ch->devices == 0) {
+		if (ch->devices == 0 ||
+		    (ch->pm_present == 0 &&
+		     ccb->ccb_h.target_id > 0 && ccb->ccb_h.target_id < 15)) {
 			ccb->ccb_h.status = CAM_SEL_TIMEOUT;
 			break;
 		}


More information about the p4-projects mailing list