linux/drivers/staging/wilc1000
Colin Ian King 8f6b8ed3b0 staging: wilc1000: fix incorrect allocation size for structure
Currently the allocation for str_vals is for the sizeof the pointer
rather than the size of the structure.  Fix this.

Detected by smatch
"wilc_wlan_cfg_init() error: not allocating enough data 392 vs 8"

Fixes: acceb12a9f ("staging: wilc1000: refactor code to avoid static variables for config parameters")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-28 14:30:52 +02:00
..
coreconfigurator.c staging: wilc1000: use lowercase for get_BSSID() and HIL variable 2018-09-10 17:17:39 +02:00
coreconfigurator.h staging: wilc1000: added Microchip copyright notice header 2018-08-05 16:15:32 +02:00
host_interface.c staging: wilc1000: remove use of unnecessary 'wilc_connected_ssid' variable 2018-09-25 20:53:57 +02:00
host_interface.h staging: wilc1000: remove use of unnecessary 'wilc_connected_ssid' variable 2018-09-25 20:53:57 +02:00
Kconfig
linux_mon.c staging: wilc1000: change return type to 'void' for wilc_wfi_deinit_mon_interface() 2018-09-25 20:53:56 +02:00
linux_wlan.c staging: wilc1000: return exact error of register_netdev() from wilc_netdev_init() 2018-09-25 20:53:57 +02:00
Makefile staging: wilc1000: remove unnecessary option used with ccflags-y in Makefile 2018-09-25 20:53:57 +02:00
microchip,wilc1000,sdio.txt staging: wilc1000: use descriptor-based interface for GPIO 2018-07-24 13:52:32 +02:00
microchip,wilc1000,spi.txt staging: wilc1000: use descriptor-based interface for GPIO 2018-07-24 13:52:32 +02:00
TODO staging: wilc1000: remove TODO item for comments and code style 2018-08-05 16:15:32 +02:00
wilc_sdio.c staging: wilc1000: remove unnecessary memset in sdio_init() & wilc_spi_init() 2018-09-25 20:53:57 +02:00
wilc_spi.c staging: wilc1000: remove unnecessary memset in sdio_init() & wilc_spi_init() 2018-09-25 20:53:57 +02:00
wilc_wfi_cfgoperations.c staging: wilc1000: remove p2p related static variables to wilc_vif struct 2018-09-25 20:53:57 +02:00
wilc_wfi_cfgoperations.h staging: wilc1000: change return type to 'void' for wilc_wfi_deinit_mon_interface() 2018-09-25 20:53:56 +02:00
wilc_wfi_netdevice.h staging: wilc1000: remove p2p related static variables to wilc_vif struct 2018-09-25 20:53:57 +02:00
wilc_wlan_cfg.c staging: wilc1000: fix incorrect allocation size for structure 2018-09-28 14:30:52 +02:00
wilc_wlan_cfg.h staging: wilc1000: rename 'wilc_mac_cfg' struct to 'wilc_cfg_str_vals' 2018-09-25 20:53:57 +02:00
wilc_wlan_if.h staging: wilc1000: remove unused wid type values 2018-09-25 20:53:56 +02:00
wilc_wlan.c staging: wilc1000: use usleep_range() in place of udelay() 2018-09-25 20:53:57 +02:00
wilc_wlan.h staging: wilc1000: refactor code to avoid static variables for config parameters 2018-09-25 20:53:57 +02:00