From 7305ca595952d5837102e6741fcb92791566434f Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 6 Dec 2010 17:06:21 +0000 Subject: When masking direct and processor devices during an inquiry, properly preserve the upper bits of the first data byte. Reviewed by: scottl MFC after: 1 week --- sys/dev/aac/aac_cam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/aac') diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c index 44f4e19..130cd20 100644 --- a/sys/dev/aac/aac_cam.c +++ b/sys/dev/aac/aac_cam.c @@ -587,7 +587,8 @@ aac_cam_complete(struct aac_command *cm) (device == T_PROCESSOR) || (sc->flags & AAC_FLAGS_CAM_PASSONLY)) ccb->csio.data_ptr[0] = - ((device & 0xe0) | T_NODEVICE); + ((ccb->csio.data_ptr[0] & 0xe0) | + T_NODEVICE); } else if (ccb->ccb_h.status == CAM_SEL_TIMEOUT && ccb->ccb_h.target_lun != 0) { /* fix for INQUIRYs on Lun>0 */ -- cgit v1.1