linux-sg2042/drivers/staging/wilc1000
Colin Ian King c58eef061d staging: wilc1000: fix missing read_write setting when reading data
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>
2018-12-20 16:32:13 +01:00
..
Kconfig staging: wilc1000: prefer 'help' in KConfig 2018-10-11 12:10:32 +02:00
Makefile staging: wilc1000: remove coreconfigurator.c file 2018-11-05 15:23:01 +01:00
TODO staging: wilc1000: remove TODO item for comments and code style 2018-08-05 16:15:32 +02:00
host_interface.c staging: wilc1000: fix NULL dereference inside wilc_scan() 2018-12-17 14:24:06 +01:00
host_interface.h staging: wilc1000: avoid extra buffer copy while connect cfg ops 2018-12-05 09:49:45 +01: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: refactor wilc_set_wfi_drv_handler() to avoid deferred handling 2018-12-05 09:49:45 +01: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
wilc_sdio.c staging: wilc1000: fix missing read_write setting when reading data 2018-12-20 16:32:13 +01:00
wilc_spi.c staging: wilc1000: correct inconsistent indenting 2018-12-05 09:51:15 +01:00
wilc_wfi_cfgoperations.c staging: wilc1000: handle scan operation callback from cfg80211 context 2018-12-05 09:49:45 +01: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: handle key related cfg operation from cfg80211 context 2018-12-05 09:49:45 +01:00
wilc_wlan.c staging: wilc1000: use mutex lock to synchronized sending 'wid' cmd to firmware 2018-12-05 09:48:45 +01: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: remove coreconfigurator.h file 2018-11-05 15:23:01 +01: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: use ENOBUFS error code instead of WILC_TX_ERR_NO_BUF macro 2018-11-12 14:46:51 -08:00