summaryrefslogtreecommitdiff
path: root/sys/arch/vax/mscp/mscp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/vax/mscp/mscp.c')
-rw-r--r--sys/arch/vax/mscp/mscp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/vax/mscp/mscp.c b/sys/arch/vax/mscp/mscp.c
index e97bee46017..4d1821b29c6 100644
--- a/sys/arch/vax/mscp/mscp.c
+++ b/sys/arch/vax/mscp/mscp.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: mscp.c,v 1.2 1997/05/29 00:05:01 niklas Exp $ */
-/* $NetBSD: mscp.c,v 1.5 1997/01/11 11:20:31 ragge Exp $ */
+/* $OpenBSD: mscp.c,v 1.3 1997/09/12 09:25:47 maja Exp $ */
+/* $NetBSD: mscp.c,v 1.6 1997/07/04 11:58:20 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -306,6 +306,7 @@ loop:
* off line (the idiot controller does not tell us until
* it comes back *on* line, or until we try to use it).
*/
+rwend:
#ifdef DIAGNOSTIC
if (mp->mscp_cmdref == 0) {
/*
@@ -317,9 +318,12 @@ loop:
break;
}
#endif
-rwend:
bp = (struct buf *) mp->mscp_cmdref;
+ if (mp->mscp_cmdref == -1) {
+ (*me->me_cmddone)(drive, mp);
+ break;
+ }
/*
* Mark any error-due-to-bad-LBN (via `goto rwend').
* WHAT STATUS WILL THESE HAVE? IT SURE WOULD BE NICE