linux_dsm_epyc7002/drivers/net/wireless/ath/ath6kl
Gustavo A. R. Silva df75786b92 ath6kl: debug: 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, change the following form:

sizeof(*tbl) + num_entries * sizeof(struct wmi_bss_roam_info)

 to :

struct_size(tbl, info, num_entries)

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-29 17:43:35 +03:00
..
bmi.c ath6kl: replace GFP_ATOMIC with GFP_KERNEL in ath6kl_bmi_init() 2018-07-31 10:48:45 +03:00
bmi.h
cfg80211.c for-4.21/block-20181221 2018-12-28 13:19:59 -08:00
cfg80211.h
common.h ath6kl: add ath6kl_ prefix to crypto_type 2018-12-13 09:58:52 +01:00
core.c
core.h ath6kl: fix ath6kl_data_tx()'s return type 2018-04-27 14:34:32 +03:00
debug.c ath6kl: debug: Use struct_size() helper 2019-04-29 17:43:35 +03:00
debug.h
hif-ops.h
hif.c
hif.h
htc_mbox.c
htc_pipe.c ath6kl: remove redundant variables netlen, orig_buf, orig_len, dropped and stats 2018-07-30 20:57:05 +03:00
htc-ops.h
htc.h
init.c wireless: remove unneeded semicolon 2019-02-01 14:25:41 +02:00
Kconfig
main.c ath6kl: Mark expected switch fall-through 2018-11-05 13:22:13 +02:00
Makefile
recovery.c timer: Remove init_timer_deferrable() in favor of timer_setup() 2017-10-05 15:01:18 +02:00
sdio.c ath6kl: add support for Dell Wireless 1537 2018-06-13 14:42:54 +03:00
target.h
testmode.c
testmode.h
trace.c
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
txrx.c ath6kl: remove redundant variables netlen, orig_buf, orig_len, dropped and stats 2018-07-30 20:57:05 +03:00
usb.c ath6kl: constify usb_device_id 2017-08-11 16:59:01 +03:00
wmi.c ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd() 2019-01-10 15:29:24 +02:00
wmi.h ath6kl: add ath6kl_ prefix to crypto_type 2018-12-13 09:58:52 +01:00