diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-02 03:13:43 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-02 03:13:43 +0000 |
commit | 17df78769e62888f697709e91fae01a5c354c560 (patch) | |
tree | 8258930e0858437535987e229e45757b9fb0fe34 /sys/dev/pcmcia/if_ray.c | |
parent | 6d99ced538a18cfb44f9fa76abd032b12114620d (diff) |
fix a variety of uninit errors. ok and one correction deraadt
Diffstat (limited to 'sys/dev/pcmcia/if_ray.c')
-rw-r--r-- | sys/dev/pcmcia/if_ray.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_ray.c b/sys/dev/pcmcia/if_ray.c index ee2d67fb77b..73cbb309b5f 100644 --- a/sys/dev/pcmcia/if_ray.c +++ b/sys/dev/pcmcia/if_ray.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ray.c,v 1.40 2010/05/19 18:50:02 nicm Exp $ */ +/* $OpenBSD: if_ray.c,v 1.41 2010/07/02 03:13:42 tedu Exp $ */ /* $NetBSD: if_ray.c,v 1.21 2000/07/05 02:35:54 onoe Exp $ */ /* @@ -1211,6 +1211,8 @@ ray_intr_start(struct ray_softc *sc) } else if (et > ETHERMTU) { /* adjust for LLC/SNAP header */ tmplen= sizeof(struct ieee80211_frame) - ETHER_ADDR_LEN; + } else { + tmplen = 0; } /* now get our space for the 802.11 frame */ M_PREPEND(m0, tmplen, M_DONTWAIT); |