Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/cardbus (cardbus_attach_card): zero out ca



details:   https://anonhg.NetBSD.org/src/rev/5dbefeefb2df
branches:  trunk
changeset: 480463:5dbefeefb2df
user:      joda <joda%NetBSD.org@localhost>
date:      Thu Jan 13 10:27:31 2000 +0000

description:
(cardbus_attach_card): zero out ca

diffstat:

 sys/dev/cardbus/cardbus.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r fe1620aa10a4 -r 5dbefeefb2df sys/dev/cardbus/cardbus.c
--- a/sys/dev/cardbus/cardbus.c Thu Jan 13 10:03:25 2000 +0000
+++ b/sys/dev/cardbus/cardbus.c Thu Jan 13 10:27:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cardbus.c,v 1.16 1999/12/11 00:29:11 thorpej Exp $     */
+/*     $NetBSD: cardbus.c,v 1.17 2000/01/13 10:27:31 joda Exp $        */
 
 /*
  * Copyright (c) 1997, 1998 and 1999
@@ -367,9 +367,9 @@
        bar_index--;
        cis->bar[bar_index].flags = tuple[2];
        cis->bar[bar_index].size = (tuple[4] << 0) |
-                                  (tuple[5] << 8) |
-                                  (tuple[6] << 16) |
-                                  (tuple[7] << 24);
+                                   (tuple[5] << 8) |
+                                   (tuple[6] << 16) |
+                                   (tuple[7] << 24);
        break;
     case PCMCIA_CISTPL_FUNCID:
        cis->funcid = tuple[2];
@@ -507,6 +507,8 @@
     ct->ct_next = NULL;
     *previous_next = ct;
 
+    memset(&ca, 0, sizeof(ca));
+
     ca.ca_unit = sc->sc_dev.dv_unit;
     ca.ca_ct = ct;
 



Home | Main Index | Thread Index | Old Index