diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-05-03 10:25:51 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-15 17:53:24 -0400 |
commit | 161f17b5307ecf56484c1d0e0ae433506394651c (patch) | |
tree | b36b30faf9607c5f6539c4bc99614b5da0ca20a8 /include/linux/ssb/ssb.h | |
parent | bd28a58f1ab39f147c23945aa0015876103d8650 (diff) |
wlcore: fix size of two memset's in wl1271_cmd_build_arp_rsp()
We currently do this:
int wl1271_cmd_build_arp_rsp(struct wl1271 *wl, struct wl12xx_vif *wlvif)
...
struct wl12xx_arp_rsp_template *tmpl;
struct ieee80211_hdr_3addr *hdr;
...
tmpl = (struct wl12xx_arp_rsp_template *)skb_put(skb, sizeof(*tmpl));
memset(tmpl, 0, sizeof(tmpl));
...
hdr = (struct ieee80211_hdr_3addr *)skb_push(skb, sizeof(*hdr));
memset(hdr, 0, sizeof(hdr));
...
I believe we want to set the entire structures to 0 with those
memset() calls, not just zero the initial part of them (size of the
pointer bytes).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'include/linux/ssb/ssb.h')
0 files changed, 0 insertions, 0 deletions