linux/drivers/net/wireless
Gustavo A. R. Silva 4f735cd736 ath10k: coredump: use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes, in particular in the
context in which this code is being used.

So, replace code of the following form:

sizeof(*ce_hdr) + CE_COUNT * sizeof(ce_hdr->entries[0])

with:

struct_size(ce_hdr, entries, CE_COUNT)

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-05-07 16:52:39 +03:00
..
admtek
ath ath10k: coredump: use struct_size() helper 2019-05-07 16:52:39 +03:00
atmel
broadcom brcmfmac: fix leak of mypkt on error return path 2019-04-13 14:07:09 +03:00
cisco Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
intel wireless-drivers-next patches for 5.2 2019-04-18 11:07:55 -07:00
intersil orinoco : Replace function name in string with __func__ 2019-02-19 17:17:13 +02:00
marvell mwifiex: add a bounds check in mwifiex_process_sta_rx_packet() 2019-04-04 13:20:47 +03:00
mediatek mt76x02: avoid status_list.lock and sta->rate_ctrl_lock dependency 2019-04-12 21:32:40 +03:00
quantenna qtnfmac: replace qtnf_cmd_acl_data_size() with struct_size() 2019-04-04 19:38:36 +03:00
ralink rt2x00: do not increment sequence number while re-transmitting 2019-04-12 21:31:07 +03:00
realtek rtlwifi: rtl8188ee: Remove extraneous file 2019-04-18 16:08:23 +03:00
rsi rsi: fix missing null pointer check from a failed ieee80211_probereq_get call 2019-02-28 10:28:36 +02:00
st cw1200: no need to check return value of debugfs_create functions 2019-02-01 14:34:56 +02:00
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-02-08 15:00:17 -08:00
zydas
Kconfig mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
mac80211_hwsim.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-04-17 11:26:25 -07:00
mac80211_hwsim.h mac80211_hwsim: allow configurable cipher types 2018-11-09 11:36:15 +01:00
Makefile mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
ray_cs.c wireless: remove unneeded semicolon 2019-02-01 14:25:41 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c
virt_wifi.c virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED 2019-02-11 17:10:48 +01:00
wl3501_cs.c
wl3501.h