linux_dsm_epyc7002/drivers/net/wireless/rsi
Nathan Chancellor f57b5d85ed rsi: Properly initialize data in rsi_sdio_ta_reset
When building with -Wuninitialized, Clang warns:

drivers/net/wireless/rsi/rsi_91x_sdio.c:940:43: warning: variable 'data'
is uninitialized when used here [-Wuninitialized]
        put_unaligned_le32(TA_HOLD_THREAD_VALUE, data);
                                                 ^~~~
drivers/net/wireless/rsi/rsi_91x_sdio.c:930:10: note: initialize the
variable 'data' to silence this warning
        u8 *data;
                ^
                 = NULL
1 warning generated.

Using Clang's suggestion of initializing data to NULL wouldn't work out
because data will be dereferenced by put_unaligned_le32. Use kzalloc to
properly initialize data, which matches a couple of other places in this
driver.

Fixes: e5a1ecc97e ("rsi: add firmware loading for 9116 device")
Link: https://github.com/ClangBuiltLinux/linux/issues/464
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-05-28 14:31:36 +03:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile rsi: add coex support 2018-03-13 18:36:57 +02:00
rsi_91x_coex.c rsi: reset hibernate_resume flag to work hibernate resume in coex mode. 2018-05-15 08:37:46 +03:00
rsi_91x_core.c rsi: fix spelling mistake: "thead" -> "thread" 2018-05-12 11:54:29 +03:00
rsi_91x_debugfs.c rsi: fix spelling mistakes 2019-02-19 17:08:47 +02:00
rsi_91x_hal.c rsi: add firmware loading for 9116 device 2019-04-25 19:44:25 +03:00
rsi_91x_mac80211.c rsi: Fix NULL pointer dereference in kmalloc 2019-04-25 19:42:26 +03:00
rsi_91x_main.c rsi: remove set but not used variables 'info, vif' 2019-02-19 17:09:25 +02:00
rsi_91x_mgmt.c rsi: miscallaneous changes for 9116 and common 2019-04-25 19:44:29 +03:00
rsi_91x_ps.c rsi: rsi_91x_ps: remove redundant code in str_psstate 2017-11-10 04:36:10 +02:00
rsi_91x_sdio_ops.c rsi: fix spelling mistake "Initialzing" -> "Initializing" 2018-11-06 18:52:10 +02:00
rsi_91x_sdio.c rsi: Properly initialize data in rsi_sdio_ta_reset 2019-05-28 14:31:36 +03:00
rsi_91x_usb_ops.c rsi: improve RX packet handling in USB interface 2018-03-13 18:42:26 +02:00
rsi_91x_usb.c rsi: miscallaneous changes for 9116 and common 2019-04-25 19:44:29 +03:00
rsi_boot_params.h rsi: new bootup parameters for 9116 2019-04-25 19:44:27 +03:00
rsi_coex.h rsi: add coex support 2018-03-13 18:36:57 +02:00
rsi_common.h rsi: improve kernel thread handling to fix kernel panic 2018-08-31 18:49:48 +03:00
rsi_debugfs.h
rsi_hal.h rsi: reset device changes for 9116 2019-04-25 19:44:29 +03:00
rsi_main.h rsi: send new tx command frame wlan9116 features 2019-04-25 19:44:28 +03:00
rsi_mgmt.h rsi: send new tx command frame wlan9116 features 2019-04-25 19:44:28 +03:00
rsi_ps.h
rsi_sdio.h rsi: add firmware loading for 9116 device 2019-04-25 19:44:25 +03:00
rsi_usb.h rsi: add new device model for 9116 2019-04-25 19:44:23 +03:00