Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/obio Fix PR 9302. Fix provided by Hauke Fat...



details:   https://anonhg.NetBSD.org/src/rev/d9ce1fd7ab57
branches:  trunk
changeset: 481360:d9ce1fd7ab57
user:      ender <ender%NetBSD.org@localhost>
date:      Thu Jan 27 02:26:17 2000 +0000

description:
Fix PR 9302.  Fix provided by Hauke Fath (hauke%Espresso.Rhein-Neckar.DE@localhost).

diffstat:

 sys/arch/mac68k/obio/iwm_fd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b51d79d31ce4 -r d9ce1fd7ab57 sys/arch/mac68k/obio/iwm_fd.c
--- a/sys/arch/mac68k/obio/iwm_fd.c     Thu Jan 27 01:05:17 2000 +0000
+++ b/sys/arch/mac68k/obio/iwm_fd.c     Thu Jan 27 02:26:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iwm_fd.c,v 1.4 2000/01/21 23:29:05 thorpej Exp $       */
+/*     $NetBSD: iwm_fd.c,v 1.5 2000/01/27 02:26:17 ender Exp $ */
 
 /*
  * Copyright (c) 1997, 1998 Hauke Fath.  All rights reserved.
@@ -323,8 +323,6 @@
        printf(": Apple GCR floppy disk controller\n");
        iwm = (iwm_softc_t *)self;
 
-       BUFQ_INIT(&iwm->bufQueue);
-
        iwmErr = iwmInit();
        if (TRACE_CONFIG)
                printf("initIWM() says %d.\n", iwmErr);
@@ -467,6 +465,9 @@
 
        iwm->fd[ia->unit] = fd;         /* iwm has ptr to this drive */
        iwm->drives++;
+
+       BUFQ_INIT(&fd->bufQueue);
+
        printf(" drive %d: ", fd->unit);
 
        if (IWM_NO_DISK & driveInfo) {



Home | Main Index | Thread Index | Old Index