kernel_samsung_a53x/drivers/soundwire
Pierre-Louis Bossart 113eaf1626 soundwire: cadence: fix invalid PDI offset
[ Upstream commit 8ee1b439b1540ae543149b15a2a61b9dff937d91 ]

For some reason, we add an offset to the PDI, presumably to skip the
PDI0 and PDI1 which are reserved for BPT.

This code is however completely wrong and leads to an out-of-bounds
access. We were just lucky so far since we used only a couple of PDIs
and remained within the PDI array bounds.

A Fixes: tag is not provided since there are no known platforms where
the out-of-bounds would be accessed, and the initial code had problems
as well.

A follow-up patch completely removes this useless offset.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20240326090122.1051806-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:00 +01:00
..
bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bus.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bus_type.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cadence_master.c soundwire: cadence: fix invalid PDI offset 2024-11-19 12:27:00 +01:00
cadence_master.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
generic_bandwidth_allocation.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_init.c 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
master.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mipi_disco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
slave.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stream.c soundwire: stream: fix NULL pointer dereference for multi_link 2024-11-18 12:11:57 +01:00
sysfs_local.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfs_slave.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfs_slave_dpn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00