Date: Fri, 30 Apr 2010 07:50:24 GMT From: Alexander Motin <mav@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 177507 for review Message-ID: <201004300750.o3U7oONE058115@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@177507?ac=10 Change 177507 by mav@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004300750.o3U7oONE058115>