summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2010-07-25 16:34:41 +0000
committerkrw <krw@openbsd.org>2010-07-25 16:34:41 +0000
commitcfdbe7f56c84ee52bb40dd82838f195c8e3f583c (patch)
tree1889d6204e397a0d7fdf93adf5d91ae87166e0ae
parentRestore previous behaviour of always bzero()'ing the buf passed to (diff)
downloadwireguard-openbsd-cfdbe7f56c84ee52bb40dd82838f195c8e3f583c.tar.xz
wireguard-openbsd-cfdbe7f56c84ee52bb40dd82838f195c8e3f583c.zip
Missing SCSI_DATA_IN flag in dvd_read_copyright() caused
confusion. Fixes at least my usb DVD reader and The Blue Tick.
-rw-r--r--sys/scsi/cd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 9c8eefe9ebf..790ae7e360f 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.179 2010/07/25 05:35:42 krw Exp $ */
+/* $OpenBSD: cd.c,v 1.180 2010/07/25 16:34:41 krw Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -1939,7 +1939,7 @@ dvd_read_copyright(struct cd_softc *sc, union dvd_struct *s)
u_int8_t buf[8];
int error;
- xs = scsi_xs_get(sc->sc_link, 0);
+ xs = scsi_xs_get(sc->sc_link, SCSI_DATA_IN);
if (xs == NULL)
return (ENOMEM);
xs->cmd->opcode = GPCMD_READ_DVD_STRUCTURE;