summaryrefslogtreecommitdiff
path: root/sys/scsi/cd.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-07-25 05:35:43 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-07-25 05:35:43 +0000
commit101337edffa0389eafaed35678b056f17fecc7e8 (patch)
tree7739f5e4b6f07340b313dd60c0c29b17f9da726c /sys/scsi/cd.c
parent906313bc59aa005fac3a21b64fd8b061f2feb0c0 (diff)
Let DVD's play again. Logic reversal prevented copyright reading.
Symptoms noted by oga@. actual bug spotted by dlg@
Diffstat (limited to 'sys/scsi/cd.c')
-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 b2c307b1d5a..9c8eefe9ebf 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.178 2010/07/22 15:59:46 matthew Exp $ */
+/* $OpenBSD: cd.c,v 1.179 2010/07/25 05:35:42 krw Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -1958,7 +1958,7 @@ dvd_read_copyright(struct cd_softc *sc, union dvd_struct *s)
error = scsi_xs_sync(xs);
scsi_xs_put(xs);
- if (error) {
+ if (error == 0) {
s->copyright.cpst = buf[4];
s->copyright.rmi = buf[5];
}