linux_dsm_epyc7002/drivers/net/wireless
Gustavo A. R. Silva 0c7beb2db9 zd1211rw: 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(struct usb_req_write_regs) + count * sizeof(struct reg_data)

with:

struct_size(req, reg_writes, 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-04-25 19:49:50 +03:00
..
admtek
ath Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2019-04-19 10:20:10 +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 iwlwifi: dbg_ini: set dump bit only when trigger collection is certain 2019-04-19 10:27:34 +03:00
intersil orinoco : Replace function name in string with __func__ 2019-02-19 17:17:13 +02:00
marvell mwifiex: use struct_size() in kzalloc() 2019-04-25 19:45:14 +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 rt2x00mmio: remove legacy comment 2019-04-25 19:43:09 +03:00
realtek rtlwifi: rtl8188ee: Remove extraneous file 2019-04-18 16:08:23 +03:00
rsi rsi: miscallaneous changes for 9116 and common 2019-04-25 19:44:29 +03:00
st net: cw1200: fix a NULL pointer dereference 2019-04-25 19:40:09 +03:00
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-02-08 15:00:17 -08:00
zydas zd1211rw: use struct_size() helper 2019-04-25 19:49:50 +03:00
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 ray_cs: use remove_proc_subtree to simplify procfs code 2019-04-25 19:38:52 +03:00
ray_cs.h
rayctl.h
rndis_wlan.c rndis_wlan: use struct_size() helper 2019-04-25 19:37:44 +03:00
virt_wifi.c virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED 2019-02-11 17:10:48 +01:00
wl3501_cs.c
wl3501.h