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

iwlwifi: 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.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Tested-by: Kalle Valo <kvalo@adurom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Johannes Berg and committed by
John W. Linville
1d815ef4 d369167f

+1 -1
+1 -1
drivers/net/wireless/iwlwifi/dvm/rx.c
··· 899 899 struct iwl_device_cmd *cmd) 900 900 { 901 901 struct ieee80211_hdr *header; 902 - struct ieee80211_rx_status rx_status; 902 + struct ieee80211_rx_status rx_status = {}; 903 903 struct iwl_rx_packet *pkt = rxb_addr(rxb); 904 904 struct iwl_rx_phy_res *phy_res; 905 905 __le32 rx_pkt_status;