linux/drivers/net/wireless
Brian Norris 1d240d3702 brcmsmac: don't leak kernel memory via printk()
Debug code prints the fifo name via custom dev_warn() wrappers. The
fifo_names array is only non-zero when debugging is manually enabled,
which is all well and good. However, it's *not* good that this array
uses zero-length arrays in the non-debug case, and so it doesn't
actually have any memory allocated to it. This means that as far as we
know, fifo_names[i] actually points to garbage memory.

I've seen this in my log:

[ 4601.205511] brcmsmac bcma0:1: wl0: brcms_c_d11hdrs_mac80211: �GeL txop exceeded phylen 137/256 dur 1602/1504

So let's give this array space enough to fill it with a NULL byte.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Brett Rudley <brudley@broadcom.com>
Cc: Arend van Spriel <arend@broadcom.com>
Cc: "Franky (Zhenhui) Lin" <frankyl@broadcom.com>
Cc: Hante Meuleman <meuleman@broadcom.com>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Cc: brcm80211-dev-list@broadcom.com
Cc: netdev@vger.kernel.org
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-12-15 13:46:20 -05:00
..
ath Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
b43 It has been a while since my last pull request, so we accumulated 2014-11-20 16:09:30 -05:00
b43legacy
brcm80211 brcmsmac: don't leak kernel memory via printk() 2014-12-15 13:46:20 -05:00
cw1200 mac80211: allow drivers to support NL80211_SCAN_FLAG_RANDOM_ADDR 2014-11-19 18:46:09 +01:00
hostap hostap_cs: fix misspelling of current function in string 2014-12-15 13:46:19 -05:00
ipw2x00 ipw2x00: clean up a condition 2014-10-27 14:16:14 -04:00
iwlegacy mac80211: allow channel switch with multiple channel contexts 2014-10-09 11:30:09 +02:00
iwlwifi iwlwifi: mvm: Ability to work with packed usniffer image 2014-12-02 16:51:56 +02:00
libertas wireless: libertas: print esaped string via %*pE 2014-10-14 02:18:26 +02:00
libertas_tf
mwifiex mwifiex: do not process broadcast mac address for del_sta 2014-12-05 14:15:25 -05:00
orinoco
p54 wireless/p54: Remove duplicated net2280 header 2014-11-24 16:51:24 -05:00
prism54
rsi
rt2x00 Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
rtl818x rtl818x_pci: fix response rate may be incorrect. 2014-10-07 14:48:37 -04:00
rtlwifi rtlwifi: rtl8192cu: Fix sparse non static symbol warning 2014-12-15 13:46:19 -05:00
ti Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
zd1211rw zd1211rw: fix misspelling of current function in string 2014-12-15 13:46:19 -05:00
adm8211.c
adm8211.h
airo_cs.c
airo.c
airo.h
at76c50x-usb.c
at76c50x-usb.h
atmel_cs.c
atmel_pci.c
atmel.c
atmel.h
Kconfig
mac80211_hwsim.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
mac80211_hwsim.h mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command 2014-11-19 18:59:32 +01:00
Makefile
mwl8k.c mac80211: allow drivers to support NL80211_SCAN_FLAG_RANDOM_ADDR 2014-11-19 18:46:09 +01:00
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
wl3501_cs.c
wl3501.h
zd1201.c
zd1201.h