summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-05-06 09:11:20 +0000
committerphk <phk@FreeBSD.org>1998-05-06 09:11:20 +0000
commit9739c7039d9ecb41bcd35a6c07374d0fe4876063 (patch)
tree4d33a6ea8618fe2a394112b7c0d4ae31539e82ad /sys/scsi
parente9a01261c41f8be041e5881ff1453848873f87f7 (diff)
downloadFreeBSD-src-9739c7039d9ecb41bcd35a6c07374d0fe4876063.zip
FreeBSD-src-9739c7039d9ecb41bcd35a6c07374d0fe4876063.tar.gz
The CHIOGSTATUS ioctl of the SCSI media changer driver (sys/scsi/ch.c)
is broken. It omits the SCSI_DATA_IN flag in the SCSI READ ELEMENT STATUS command, which makes the 'chio status' command fail. PR: 6528 Reviewed by: phk Submitted by: Hans Huebner <hans@artcom.de>
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/ch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c
index 5faca39..ecab879 100644
--- a/sys/scsi/ch.c
+++ b/sys/scsi/ch.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ch.c,v 1.43 1998/01/24 02:54:48 eivind Exp $
+ * $Id: ch.c,v 1.44 1998/04/16 12:28:30 peter Exp $
*/
#include "opt_devfs.h"
@@ -628,7 +628,7 @@ ch_getelemstatus(sc, first, count, data, datalen)
* Send command to changer.
*/
return (scsi_scsi_cmd(sc->sc_link, (struct scsi_generic *)&cmd,
- sizeof(cmd), (u_char *)data, datalen, CHRETRIES, 100000, NULL, 0));
+ sizeof(cmd), (u_char *)data, datalen, CHRETRIES, 100000, NULL, SCSI_DATA_IN));
}
OpenPOWER on IntegriCloud