1
0
Fork 0
alistair23-linux/drivers/staging/wfx
Gustavo A. R. Silva 3e1f8882a9 staging: wfx: Use flex_array_size() helper in memcpy()
Make use of the flex_array_size() helper to calculate the size of a
flexible array member within an enclosing structure.

This helper offers defense-in-depth against potential integer
overflows, while at the same time makes it explicitly clear that
we are dealing with a flexible array member.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200729233557.GA17693@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-30 08:41:06 +02:00
..
Documentation/devicetree/bindings/net/wireless Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
Kconfig staging: wfx: fix CONFIG_MMC=m with CONFIG_WFX=y 2019-10-26 20:42:32 +02:00
Makefile staging: wfx: place hif_tx_mib functions into a .c file 2020-04-13 14:32:38 +02:00
TODO staging: wfx: update TODO 2020-05-13 13:49:45 +02:00
bh.c staging: wfx: improve protection against malformed HIF messages 2020-07-03 10:33:07 +02:00
bh.h staging: wfx: introduce a way to poll IRQ 2020-05-13 13:26:41 +02:00
bus.h staging: wfx: poll IRQ during init 2020-05-13 13:26:41 +02:00
bus_sdio.c staging: wfx: apply 80-columns rule to strings 2020-05-15 15:50:39 +02:00
bus_spi.c staging: wfx: Get descriptors for GPIOs 2020-07-10 13:51:22 +02:00
data_rx.c staging: wfx: fix CCMP/TKIP replay protection 2020-07-03 10:33:07 +02:00
data_rx.h staging: wfx: remove useless header inclusions 2020-05-13 13:26:42 +02:00
data_tx.c staging: wfx: fix CCMP/TKIP replay protection 2020-07-03 10:33:07 +02:00
data_tx.h staging: wfx: drop counter of buffered frames 2020-07-03 10:33:07 +02:00
debug.c staging: wfx: add a debugfs entry to force ps_timeout 2020-07-03 10:33:08 +02:00
debug.h staging: wfx: allow to send commands to chip 2019-10-04 10:46:10 +02:00
fwio.c staging: wfx: Remove unnecessary return variable 2020-07-28 10:17:30 +02:00
fwio.h staging: wfx: load firmware 2019-10-04 10:43:39 +02:00
hif_api_cmd.h staging: wfx: fix endianness of the field 'channel_number' 2020-05-13 13:49:45 +02:00
hif_api_general.h staging: wfx: add support for tx_power_loop 2020-05-27 10:18:08 +02:00
hif_api_mib.h staging: wfx: dual CTS is never necessary 2020-04-23 13:26:03 +02:00
hif_rx.c staging: wfx: always enable FastPs in combo with new firmwares 2020-07-03 10:33:08 +02:00
hif_rx.h staging: wfx: add support for start-up indication 2019-10-04 10:46:09 +02:00
hif_tx.c staging: wfx: fix coherency of hif_scan() prototype 2020-06-16 21:22:51 +02:00
hif_tx.h staging: wfx: fix coherency of hif_scan() prototype 2020-06-16 21:22:51 +02:00
hif_tx_mib.c staging: wfx: Use flex_array_size() helper in memcpy() 2020-07-30 08:41:06 +02:00
hif_tx_mib.h staging: wfx: use kernel types instead of c99 ones 2020-05-13 13:26:43 +02:00
hwio.c staging: wfx: fix use of cpu_to_le32 instead of le32_to_cpu 2020-05-13 13:49:42 +02:00
hwio.h staging: wfx: use meaningful names for CFG_BYTE_ORDER_* 2019-12-18 15:56:00 +01:00
key.c staging: wfx: remove spaces after cast operator 2020-05-13 13:26:43 +02:00
key.h staging: wfx: keys are kept during whole firmware life 2020-04-23 13:26:05 +02:00
main.c staging: wfx: Get descriptors for GPIOs 2020-07-10 13:51:22 +02:00
main.h staging: wfx: Get descriptors for GPIOs 2020-07-10 13:51:22 +02:00
queue.c staging: wfx: add tracepoint "queues_stats" 2020-07-03 10:33:07 +02:00
queue.h staging: wfx: correctly retrieve vif ID from Tx confirmation 2020-07-03 10:33:07 +02:00
scan.c staging: wfx: fix coherency of hif_scan() prototype 2020-06-16 21:22:51 +02:00
scan.h staging: wfx: simplify wfx_scan_complete() 2020-01-16 20:59:50 +01:00
secure_link.h staging: wfx: ensure that received hif messages are never modified 2019-12-18 15:56:04 +01:00
sta.c staging: wfx: always enable FastPs in combo with new firmwares 2020-07-03 10:33:08 +02:00
sta.h staging: wfx: add a debugfs entry to force ps_timeout 2020-07-03 10:33:08 +02:00
traces.h staging: wfx: add tracepoint "queues_stats" 2020-07-03 10:33:07 +02:00
wfx.h staging: wfx: always enable FastPs in combo with new firmwares 2020-07-03 10:33:08 +02:00