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

Return -EINVAL on possible 'sscanf()' errors in
'mwifiex_regrdwr_write()' and 'mwifiex_rdeeprom_write()'.

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-3-dmantipov@yandex.ru
drivers/net/wireless/marvell/mwifiex/debugfs.c