kernel_optimize_test/sound/soc
Alexey Khoroshilov 7386f69041 ASoC: max98090: Move check for invalid values before casting in max98090_put_enab_tlv()
[ Upstream commit f7a344468105ef8c54086dfdc800e6f5a8417d3e ]

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

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Suggested-by: Mark Brown <broonie@kernel.org>
Fixes: 2fbe467bcbfc ("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: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:21:11 +02:00
..
adi
amd
atmel ASoC: atmel: Remove system clock tree configuration for at91sam9g20ek 2022-04-27 13:53:47 +02:00
au1x
bcm
cirrus
codecs ASoC: max98090: Move check for invalid values before casting in max98090_put_enab_tlv() 2022-06-09 10:21:11 +02:00
dwc
fsl ASoC: fsl: Fix refcount leak in imx_sgtl5000_probe 2022-06-09 10:21:07 +02:00
generic
hisilicon
img
intel ASoC: Intel: bytcr_rt5640: Add quirk for the HP Pro Tablet 408 2022-06-09 10:20:52 +02:00
jz4740
kirkwood
mediatek ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe 2022-06-09 10:21:00 +02:00
meson ASoC: meson: Fix event generation for AUI CODEC mux 2022-05-12 12:25:33 +02:00
mxs ASoC: mxs-saif: Fix refcount leak in mxs_saif_probe 2022-06-09 10:21:07 +02:00
pxa
qcom
rockchip ASoC: rockchip: i2s: Fix missing clk_disable_unprepare() in rockchip_i2s_probe 2022-04-08 14:40:10 +02:00
samsung ASoC: samsung: Fix refcount leak in aries_audio_probe 2022-06-09 10:21:07 +02:00
sh
sirf
sof ASoC: SOF: Intel: Fix NULL ptr dereference when ENOMEM 2022-04-08 14:40:39 +02:00
spear
sprd
sti
stm
sunxi
tegra
ti ASoC: ti: j721e-evm: Fix refcount leak in j721e_soc_probe_* 2022-06-09 10:21:09 +02:00
txx9
uniphier
ux500
xilinx
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-card.c
soc-component.c
soc-compress.c ASoC: soc-compress: Change the check for codec_dai 2022-04-08 14:40:42 +02:00
soc-core.c ASoC: soc-core: skip zero num_dai component in searching dai name 2022-04-08 14:40:35 +02:00
soc-dai.c
soc-dapm.c ASoC: dapm: Don't fold register value changes into notifications 2022-06-09 10:20:53 +02:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: dmaengine: Restore NULL prepare_slave_config() callback 2022-05-12 12:25:37 +02:00
soc-jack.c
soc-link.c
soc-ops.c ASoC: ops: Validate input values in snd_soc_put_volsw_range() 2022-05-18 10:23:45 +02:00
soc-pcm.c
soc-topology.c ASoC: topology: Allow TLV control to be either read or write 2022-04-08 14:40:44 +02:00
soc-utils.c