diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2023-07-25 08:04:48 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-08-01 16:49:02 +0200 |
commit | f5343efdf5b5d66844ce041e5dcd585ee5697747 (patch) | |
tree | a39e20417ead65bd4556e151b86d9753a1fe9ba9 /drivers/net/wireless/mediatek/mt76/mt7921/mac.c | |
parent | wifi: libertas: handle possible spu_write_u16() errors (diff) | |
download | linux-f5343efdf5b5d66844ce041e5dcd585ee5697747.tar.xz linux-f5343efdf5b5d66844ce041e5dcd585ee5697747.zip |
wifi: libertas: prefer kstrtoX() for simple integer conversions
Prefer 'kstrtoX()' family of functions over 'sscanf()' to convert
strings to integers and always check results of the conversions.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230725060531.72968-6-dmantipov@yandex.ru
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7921/mac.c')
0 files changed, 0 insertions, 0 deletions