Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jul 2011 18:05:05 +0000
From:      oleksandr@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r224055 - soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage
Message-ID:  <20110708180505.7470C1065672@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: oleksandr
Date: Fri Jul  8 18:05:05 2011
New Revision: 224055
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=224055

Log:
  Sorry, I was wrong, variable status_test in umass driver

Modified:
  soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage/umass.c

Modified: soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage/umass.c
==============================================================================
--- soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage/umass.c	Fri Jul  8 17:45:38 2011	(r224054)
+++ soc2011/oleksandr/oleksandr-head/head/sys/dev/usb/storage/umass.c	Fri Jul  8 18:05:05 2011	(r224055)
@@ -2553,7 +2553,6 @@
 	switch (status) {
 	case STATUS_CMD_OK:
 		ccb->ccb_h.status = CAM_REQ_CMP;
-                ccb->ccb_h.status_test = CAM_REQ_CMP_ERR; 
 		if ((sc->sc_quirks & READ_CAPACITY_OFFBY1) &&
 		    (ccb->ccb_h.func_code == XPT_SCSI_IO) &&
 		    (ccb->csio.cdb_io.cdb_bytes[0] == READ_CAPACITY)) {
@@ -2564,6 +2563,7 @@
 			maxsector = scsi_4btoul(rcap->addr) - 1;
 			scsi_ulto4b(maxsector, rcap->addr);
 		}
+                ccb->ccb_h.status_test = CAM_REQ_CMP_ERR; 
 		/*
 		 * We have to add SVPD_UNIT_SERIAL_NUMBER to the list
 		 * of pages supported by the device - otherwise, CAM



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110708180505.7470C1065672>