android_kernel_sony_sdm845/drivers/memory
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Colin Ian King a9e6199bc4 memory: gpmc: fix out of bounds read and dereference on gpmc_cs[]
[ Upstream commit e004c3e67b6459c99285b18366a71af467d869f5 ]

Currently the array gpmc_cs is indexed by cs before it cs is range checked
and the pointer read from this out-of-index read is dereferenced. Fix this
by performing the range check on cs before the read and the following
pointer dereference.

Addresses-Coverity: ("Negative array index read")
Fixes: 9ed7a776eb ("ARM: OMAP2+: Fix support for multiple devices on a GPMC chip select")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210223193821.17232-1-colin.king@canonical.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 10:40:22 +02:00
..
samsung
tegra memory: tegra: Fix integer overflow on tick value calculation 2019-05-25 18:26:49 +02:00
atmel-ebi.c memory/atmel-ebi: Fix ns <-> cycles conversions 2017-03-15 10:02:45 +08:00
atmel-sdramc.c
emif.c memory: emif: Remove bogus debugfs error handling 2020-11-10 10:23:55 +01:00
emif.h
fsl-corenet-cf.c memory: fsl-corenet-cf: Fix handling of platform_get_irq() error 2020-10-29 09:05:40 +01:00
fsl_ifc.c
jz4780-nemc.c
Kconfig
Makefile
mtk-smi.c
mvebu-devbus.c
of_memory.c
of_memory.h
omap-gpmc.c memory: gpmc: fix out of bounds read and dereference on gpmc_cs[] 2021-05-22 10:40:22 +02:00
pl172.c
tegra20-mc.c
ti-aemif.c