diff options
author | Mark Brown <broonie@kernel.org> | 2024-01-03 18:34:02 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-01-03 18:37:01 +0000 |
commit | 1e001206804be3f3d21f4a1cf16e5d059d75643f (patch) | |
tree | 840f7e7bc1786792fc7c9f66910c0fb6ff9032eb /drivers/platform/x86/intel/pmt/crashlog.c | |
parent | 3150b70e944ead909260285dfb5707d0bedcf87b (diff) |
ASoC: meson: g12a-tohdmitx: Validate written enum values
When writing to an enum we need to verify that the value written is valid
for the enumeration, the helper function snd_soc_item_enum_to_val() doesn't
do it since it needs to return an unsigned (and in any case we'd need to
check the return value).
Fixes: c8609f3870f7 ("ASoC: meson: add g12a tohdmitx control")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240103-meson-enum-val-v1-2-424af7a8fb91@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/crashlog.c')
0 files changed, 0 insertions, 0 deletions