linux/drivers/net/wireless/ath/wcn36xx
Kees Cook d3a1a18ab0 wcn36xx: Avoid memset() beyond end of struct field
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring array fields.

Instead of writing past the end of the header to reach the rest of
the body, replace the redundant function with existing macro to wipe
struct contents and set field values. Additionally adjusts macro to add
missing parens.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210617171058.3410494-1-keescook@chromium.org
2021-06-22 18:28:25 +03:00
..
debug.c
debug.h
dxe.c wcn36xx: Fix inconsistent indenting 2021-06-14 18:20:21 +03:00
dxe.h
hal.h wcn36xx: Add GTK offload info to WoWLAN resume 2021-06-14 18:18:15 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
main.c wcn36xx: Move hal_buf allocation to devm_kmalloc in probe 2021-06-14 18:27:07 +03:00
Makefile
pmc.c wcn36xx: Advertise beacon filtering support in bmps 2020-10-01 22:34:04 +03:00
pmc.h
smd.c wcn36xx: Avoid memset() beyond end of struct field 2021-06-22 18:28:25 +03:00
smd.h wcn36xx: Add host resume request support 2021-06-14 18:18:17 +03:00
testmode.c
testmode.h wcn36xx: Replace zero-length array with flexible-array 2020-05-13 19:03:06 +03:00
testmode_i.h
txrx.c wcn36xx: Specify ieee80211_rx_status.nss 2020-09-02 11:48:26 +03:00
txrx.h
wcn36xx.h wcn36xx: Add set_rekey_data callback 2021-06-14 18:18:14 +03:00