diff options
| author | joda <joda@NetBSD.org> | 2000-01-13 10:27:31 +0000 |
|---|---|---|
| committer | joda <joda@NetBSD.org> | 2000-01-13 10:27:31 +0000 |
| commit | de798768b3c6f5cd4f34f8a321a17f403dfaee83 (patch) | |
| tree | 00a959526eb993ed47cfb493904dc5eedba7d7f3 /sys | |
| parent | 78d457dc77ae3ceaf7717e74e59abb0ceb1e3d77 (diff) | |
(cardbus_attach_card): zero out ca
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/cardbus/cardbus.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c index 211aedafb98..a4c90667510 100644 --- a/sys/dev/cardbus/cardbus.c +++ b/sys/dev/cardbus/cardbus.c @@ -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 @@ parse_tuple(u_int8_t *tuple, int len, void *data) 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 @@ cardbus_attach_card(sc) ct->ct_next = NULL; *previous_next = ct; + memset(&ca, 0, sizeof(ca)); + ca.ca_unit = sc->sc_dev.dv_unit; ca.ca_ct = ct; |
