Skip to content
Unverified Commit f7a34446 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Mark Brown
Browse files

ASoC: max98090: Move check for invalid values before casting in max98090_put_enab_tlv()



Validation of signed input should be done before casting to unsigned int.

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

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Suggested-by: default avatarMark Brown <broonie@kernel.org>
Fixes: 2fbe467b

 ("ASoC: max98090: Reject invalid values in custom control put()")
Link: https://lore.kernel.org/r/1652999486-29653-1-git-send-email-khoroshilov@ispras.ru
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent affa9983
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment