linux/drivers/net/wireless/ath/wcn36xx
Minghao Chi (CGEL ZTE) be24835f83 wcn36xx: use struct_size over open coded arithmetic
Replace zero-length array with flexible-array member and make use
of the struct_size() helper in kmalloc(). For example:

struct wcn36xx_hal_ind_msg {
    struct list_head list;
    size_t msg_len;
    u8 msg[];
};

Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi (CGEL ZTE) <chi.minghao@zte.com.cn>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220208015606.1514022-1-chi.minghao@zte.com.cn
2022-02-14 19:50:57 +02:00
..
debug.c wcn36xx: Add ability for wcn36xx_smd_dump_cmd_req to pass two's complement 2021-09-21 16:33:25 +03:00
debug.h
dxe.c wcn36xx: Put DXE block into reset before freeing memory 2021-11-08 15:21:17 +02:00
dxe.h wcn36xx: implement flush op to speed up connected scan 2021-11-01 16:18:37 +02:00
hal.h wcn36xx: Implement beacon filtering 2021-12-16 17:37:36 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
main.c wcn36xx: Uninitialized variable in wcn36xx_change_opchannel() 2022-02-10 10:51:15 +02:00
Makefile
pmc.c Revert "wcn36xx: Disable bmps when encryption is disabled" 2021-10-27 10:43:31 +03:00
pmc.h
smd.c wcn36xx: use struct_size over open coded arithmetic 2022-02-14 19:50:57 +02:00
smd.h wcn36xx: Implement beacon filtering 2021-12-16 17:37:36 +02:00
testmode_i.h
testmode.c
testmode.h wcn36xx: Replace zero-length array with flexible-array 2020-05-13 19:03:06 +03:00
txrx.c wcn36xx: clean up some inconsistent indenting 2022-02-03 11:04:37 +02:00
txrx.h wcn36xx: Correct band/freq reporting on RX 2021-10-27 10:41:44 +03:00
wcn36xx.h wcn36xx: Differentiate wcn3660 from wcn3620 2022-01-31 16:12:30 +02:00