iwlegacy: initialize rx_status
authorJohannes Berg <johannes.berg@intel.com>
Thu, 22 Nov 2012 11:58:16 +0000 (12:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Nov 2012 19:54:20 +0000 (14:54 -0500)
The vendor radiotap patch added a few fields to
struct ieee80211_rx_status that need to be zero,
initialize the struct instead of using whatever
was left on the stack.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/3945.c
drivers/net/wireless/iwlegacy/4965-mac.c

index 87e5398943308665618cc85a78aa933fa5d7df48..e0b9d7fa5de0d43d74e130b6c91d4ad0078ecf19 100644 (file)
@@ -516,7 +516,7 @@ static void
 il3945_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
 {
        struct ieee80211_hdr *header;
-       struct ieee80211_rx_status rx_status;
+       struct ieee80211_rx_status rx_status = {};
        struct il_rx_pkt *pkt = rxb_addr(rxb);
        struct il3945_rx_frame_stats *rx_stats = IL_RX_STATS(pkt);
        struct il3945_rx_frame_hdr *rx_hdr = IL_RX_HDR(pkt);
index ef68b7239955995b712cffbb47155a4067723e8a..07ffa575e3efb7ccdf37baaddb43751f67b6bb88 100644 (file)
@@ -613,7 +613,7 @@ void
 il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
 {
        struct ieee80211_hdr *header;
-       struct ieee80211_rx_status rx_status;
+       struct ieee80211_rx_status rx_status = {};
        struct il_rx_pkt *pkt = rxb_addr(rxb);
        struct il_rx_phy_res *phy_res;
        __le32 rx_pkt_status;