wifi: mwifiex: handle possible mwifiex_write_reg() errors
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 2 Aug 2023 16:07:18 +0000 (19:07 +0300)
committerKalle Valo <kvalo@kernel.org>
Mon, 21 Aug 2023 15:56:27 +0000 (18:56 +0300)
commita6b3a0169ade026b257be58f9295f5eec7edd359
tree299449f88178a755b909cc9d6f97aea0e5ef79f6
parent968d02c61311221deb881634d15f191effa1ab22
wifi: mwifiex: handle possible mwifiex_write_reg() errors

Return -1 on possible 'mwifiex_write_reg()' errors in
'mwifiex_init_sdio_ioport()', do not ignore the value
returned by the latter in 'mwifiex_init_sdio()' and
'mwifiex_sdio_up_dev()' as well.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Acked-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230802160726.85545-4-dmantipov@yandex.ru
drivers/net/wireless/marvell/mwifiex/sdio.c