summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-12-23 09:07:40 +0000
committermsmith <msmith@FreeBSD.org>1998-12-23 09:07:40 +0000
commitcb8b246a394601b9e5228fd27edfb6682da216ab (patch)
tree4c0d389d30e82a7ba9b53abc06a3132125158ed6
parentef6bc7ee8cf2381dfbc5abd6096b684753ae037a (diff)
downloadFreeBSD-src-cb8b246a394601b9e5228fd27edfb6682da216ab.zip
FreeBSD-src-cb8b246a394601b9e5228fd27edfb6682da216ab.tar.gz
Don't leave the CDROM tray locked if an attempt to mount it is made and
the drive is actually empty. Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
-rw-r--r--sys/i386/isa/wcd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/isa/wcd.c b/sys/i386/isa/wcd.c
index bfd96a7..3f4081f 100644
--- a/sys/i386/isa/wcd.c
+++ b/sys/i386/isa/wcd.c
@@ -13,7 +13,7 @@
* all derivative works or modified versions.
*
* From: Version 1.9, Mon Oct 9 20:27:42 MSK 1995
- * $Id: wcd.c,v 1.60 1998/10/30 10:57:09 luigi Exp $
+ * $Id: wcd.c,v 1.61 1998/12/13 23:30:15 steve Exp $
*/
#include "wdc.h"
@@ -692,6 +692,7 @@ static void wcd_error (struct wcd *t, struct atapires result)
if (result.error & ~AER_SKEY) {
/* Audio disc. */
printf ("wcd%d: cannot read audio disc\n", t->lun);
+ t->flags &= ~F_LOCKED;
return;
}
/* Tray open. */
OpenPOWER on IntegriCloud