1
0
Fork 0
alistair23-linux/drivers/staging/wilc1000
Oscar Carter 2428682e3f staging: wilc1000: Increase the size of wid_list array
[ Upstream commit a4338ed2e1 ]

Increase by one the size of wid_list array as index variable can reach a
value of 5. If this happens, an out-of-bounds access is performed.

Also, use a #define instead of a hard-coded literal for the new array
size.

Addresses-Coverity-ID: 1451981 ("Out-of-bounds access")
Fixes: f5a3cb90b8 ("staging: wilc1000: add passive scan support")
Acked-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Link: https://lore.kernel.org/r/20200504150911.4470-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:23 +02:00
..
Kconfig staging: remove redundant 'default n' from Kconfig 2019-04-16 13:39:01 +02:00
Makefile staging: wilc1000: rename 'host_interface' source and header 2019-07-01 09:01:41 +02:00
TODO staging: wilc1000: remove TODO item for comments and code style 2018-08-05 16:15:32 +02:00
microchip,wilc1000,sdio.txt staging: dt-bindings: wilc1000: add optional rtc_clk property 2019-09-12 10:35:51 +01:00
microchip,wilc1000,spi.txt staging: dt-bindings: wilc1000: add optional rtc_clk property 2019-09-12 10:35:51 +01:00
wilc_hif.c staging: wilc1000: Increase the size of wid_list array 2020-06-24 17:50:23 +02:00
wilc_hif.h staging: wilc1000: remove unused function 2019-08-02 13:58:11 +02:00
wilc_mon.c staging: wilc1000: Merge memcpy + le32_to_cpus to get_unaligned_le32 2019-07-25 09:48:14 +02:00
wilc_netdev.c staging: wilc1000: avoid twice IRQ handler execution for each single interrupt 2019-09-12 10:37:26 +01:00
wilc_sdio.c staging: wilc1000: look for rtc_clk clock 2019-09-12 10:35:51 +01:00
wilc_spi.c staging: wilc1000: added support to dynamically add/remove interfaces 2019-07-01 09:01:41 +02:00
wilc_wfi_cfgoperations.c staging: wilc1000: check if device is initialzied before changing vif 2019-12-31 16:44:28 +01:00
wilc_wfi_cfgoperations.h staging: wilc1000: added support to dynamically add/remove interfaces 2019-07-01 09:01:41 +02:00
wilc_wfi_netdevice.h staging: wilc1000: look for rtc_clk clock 2019-09-12 10:35:51 +01:00
wilc_wlan.c staging: wilc1000: avoid double unlocking of 'wilc->hif_cs' mutex 2020-04-17 10:50:00 +02:00
wilc_wlan.h staging: wilc1000: remove unused interrupt status handling code 2019-09-12 10:37:26 +01:00
wilc_wlan_cfg.c staging: wilc1000: use helper API to pack data for firmware 2019-08-08 18:59:18 +02:00
wilc_wlan_cfg.h staging: wilc1000: Replace function wilc_wlan_cfg_get_val() 2019-07-22 07:34:12 +02:00
wilc_wlan_if.h staging: wilc1000: merge drv_handle and operation_mode wids 2019-08-02 13:56:59 +02:00