linux/drivers/staging/wilc1000
Colin Ian King be8af66998 staging: wilc1000: fix missing read_write setting when reading data
commit c58eef061d upstream.

Currently the cmd.read_write setting is not initialized so it contains
garbage from the stack.  Fix this by setting it to 0 to indicate a
read is required.

Detected by CoverityScan, CID#1357925 ("Uninitialized scalar variable")

Fixes: c5c77ba18e ("staging: wilc1000: Add SDIO/SPI 802.11 driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2019-01-09 17:45:54 +01: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 staging: wilc1000: prefer 'help' in KConfig 2018-10-11 12:10:32 +02:00
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: fix missing read_write setting when reading data 2019-01-09 17:45:54 +01: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.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
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