kernel_samsung_a53x/sound/soc
Krzysztof Kozlowski 5f5e82860f ASoC: codecs: wsa881x: Correct Soundwire ports mask
[ Upstream commit eb11c3bb64ad0a05aeacdb01039863aa2aa3614b ]

Device has up to WSA881X_MAX_SWR_PORTS number of ports and the array
assigned to prop.sink_dpn_prop has 0..WSA881X_MAX_SWR_PORTS-1 elements.
On the other hand, GENMASK(high, low) creates an inclusive mask between
<high, low>, so we need the mask from 0 up to WSA881X_MAX_SWR_PORTS-1.

Theoretically, too wide mask could cause an out of bounds read in
sdw_get_slave_dpn_prop() in stream.c, however only in the case of buggy
driver, e.g. adding incorrect number of ports via
sdw_stream_add_slave().

Fixes: a0aab9e1404a ("ASoC: codecs: add wsa881x amplifier support")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240726-asoc-wcd-wsa-swr-ports-genmask-v1-4-d4d7a8b56f05@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:26 +01:00
..
adi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel Revert "ASoC: atmel: Remove system clock tree configuration for at91sam9g20ek" 2024-11-18 12:12:45 +01:00
au1x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cirrus Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
codecs ASoC: codecs: wsa881x: Correct Soundwire ports mask 2024-11-23 23:20:26 +01:00
dwc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsl ASoC: fsl-asoc-card: set priv->pdev before using it 2024-11-19 14:19:31 +01:00
generic ASoC: Fix 7/8 spaces indentation in Kconfig 2024-11-19 11:32:42 +01:00
hisilicon Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
img Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel ASoC: Intel: use soc_intel_is_byt_cr() only when IOSF_MBI is reachable 2024-11-23 23:20:18 +01:00
jz4740 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kirkwood Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mediatek Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson ASoC: meson: cards: select SND_DYNAMIC_MINORS 2024-11-19 11:32:43 +01:00
mxs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa ARM: pxa: spitz: use gpio descriptors for audio 2024-11-23 23:20:06 +01:00
qcom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung sound: abox: Bump buffer sizes up 2024-11-17 17:40:16 +01:00
sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sirf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sof ASoC: SOF: sof-pci-dev: Fix community key quirk detection 2024-11-18 12:11:11 +01:00
spear Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sprd Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunxi ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616 2024-11-18 22:25:33 +01:00
tegra ASoC: tegra: Fix DSPK 16-bit playback 2024-11-19 11:32:48 +01:00
ti ASoC: ti: omap-hdmi: Fix too long driver name 2024-11-19 14:19:48 +01:00
txx9 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uniphier Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ux500 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xilinx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xtensa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zte Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-ac97.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-card.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-component.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-compress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-dai.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-dapm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-devres.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-generic-dmaengine-pcm.c ALSA: dmaengine: Synchronize dma channel after drop() 2024-11-19 14:19:48 +01:00
soc-jack.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-link.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-ops.c ASoC: ops: Fix wraparound for mask in snd_soc_get_volsw 2024-11-19 09:23:10 +01:00
soc-pcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-topology.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc-utils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00