summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2023-07-25 08:04:48 +0200
committerKalle Valo <kvalo@kernel.org>2023-08-01 16:49:02 +0200
commitf5343efdf5b5d66844ce041e5dcd585ee5697747 (patch)
treea39e20417ead65bd4556e151b86d9753a1fe9ba9 /drivers/net/wireless/mediatek/mt76/mt7921/mac.c
parentwifi: libertas: handle possible spu_write_u16() errors (diff)
downloadlinux-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