Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iwlegacy: initialize rx_status

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>

authored by

Johannes Berg and committed by
John W. Linville
d369167f fbbdcc02

+2 -2
+1 -1
drivers/net/wireless/iwlegacy/3945.c
··· 516 516 il3945_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb) 517 517 { 518 518 struct ieee80211_hdr *header; 519 - struct ieee80211_rx_status rx_status; 519 + struct ieee80211_rx_status rx_status = {}; 520 520 struct il_rx_pkt *pkt = rxb_addr(rxb); 521 521 struct il3945_rx_frame_stats *rx_stats = IL_RX_STATS(pkt); 522 522 struct il3945_rx_frame_hdr *rx_hdr = IL_RX_HDR(pkt);
+1 -1
drivers/net/wireless/iwlegacy/4965-mac.c
··· 613 613 il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb) 614 614 { 615 615 struct ieee80211_hdr *header; 616 - struct ieee80211_rx_status rx_status; 616 + struct ieee80211_rx_status rx_status = {}; 617 617 struct il_rx_pkt *pkt = rxb_addr(rxb); 618 618 struct il_rx_phy_res *phy_res; 619 619 __le32 rx_pkt_status;