summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbriggs <briggs@openbsd.org>1997-03-29 23:54:20 +0000
committerbriggs <briggs@openbsd.org>1997-03-29 23:54:20 +0000
commit80e3d48821db053bd43512b7120c1663025e5ce6 (patch)
treea8fb94a7c144c3d24bb576c76459c958ac37b073
parentDo not register an interrupt handler unless we know that we can clear (diff)
downloadwireguard-openbsd-80e3d48821db053bd43512b7120c1663025e5ce6.tar.xz
wireguard-openbsd-80e3d48821db053bd43512b7120c1663025e5ce6.zip
Increase timeout by a factor of ten in cd_size().
NetBSD PR#3409 from Koji Imada <koji@imada.math.human.nagoya-u.ac.jp>
-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 1a96f733782..0bb33ae9974 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.21 1997/03/26 01:53:48 deraadt Exp $ */
+/* $OpenBSD: cd.c,v 1.22 1997/03/29 23:54:20 briggs Exp $ */
/* $NetBSD: cd.c,v 1.92 1996/05/05 19:52:50 christos Exp $ */
/*
@@ -1120,7 +1120,7 @@ cd_size(cd, flags)
*/
if (scsi_scsi_cmd(cd->sc_link, (struct scsi_generic *)&scsi_cmd,
sizeof(scsi_cmd), (u_char *)&rdcap, sizeof(rdcap), CDRETRIES,
- 2000, NULL, flags | SCSI_DATA_IN) != 0)
+ 20000, NULL, flags | SCSI_DATA_IN) != 0)
return 0;
blksize = _4btol(rdcap.length);