Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/arch/macppc/dev Ops, don't use uninitialised po...



details:   https://anonhg.NetBSD.org/src/rev/588e8e170b1d
branches:  thorpej_scsipi
changeset: 477445:588e8e170b1d
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Mar 29 20:24:33 2001 +0000

description:
Ops, don't use uninitialised pointer.
mesh now works, thanks to Emmanuel Dreyfus for testing !

diffstat:

 sys/arch/macppc/dev/mesh.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r d0bbba41f968 -r 588e8e170b1d sys/arch/macppc/dev/mesh.c
--- a/sys/arch/macppc/dev/mesh.c        Thu Mar 29 17:47:23 2001 +0000
+++ b/sys/arch/macppc/dev/mesh.c        Thu Mar 29 20:24:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mesh.c,v 1.2.2.5 2001/03/29 10:17:50 bouyer Exp $      */
+/*     $NetBSD: mesh.c,v 1.2.2.6 2001/03/29 20:24:33 bouyer Exp $      */
 
 /*-
  * Copyright (c) 2000  Tsubai Masanari.
@@ -983,13 +983,14 @@
        struct scsipi_periph *periph;
        struct mesh_softc *sc = (void *)chan->chan_adapter->adapt_dev;
        struct mesh_scb *scb;
-       u_int flags = xs->xs_control;
+       u_int flags;
        int s;
 
        switch (req) {
        case ADAPTER_REQ_RUN_XFER:
                xs = arg;
                periph = xs->xs_periph;
+               flags = xs->xs_control;
 
 
                if ((scb = mesh_get_scb(sc)) == NULL) {



Home | Main Index | Thread Index | Old Index