mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 16:36:52 +07:00
f57b5d85ed
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
rsi_91x_coex.c | ||
rsi_91x_core.c | ||
rsi_91x_debugfs.c | ||
rsi_91x_hal.c | ||
rsi_91x_mac80211.c | ||
rsi_91x_main.c | ||
rsi_91x_mgmt.c | ||
rsi_91x_ps.c | ||
rsi_91x_sdio_ops.c | ||
rsi_91x_sdio.c | ||
rsi_91x_usb_ops.c | ||
rsi_91x_usb.c | ||
rsi_boot_params.h | ||
rsi_coex.h | ||
rsi_common.h | ||
rsi_debugfs.h | ||
rsi_hal.h | ||
rsi_main.h | ||
rsi_mgmt.h | ||
rsi_ps.h | ||
rsi_sdio.h | ||
rsi_usb.h |