Ubuntu-focal-kernel/drivers/memory
Krzysztof Kozlowski bdd34a8977 memory: brcmstb_dpfe: fix testing array offset after use
BugLink: https://bugs.launchpad.net/bugs/2034918

[ Upstream commit 1d9e93fad549bc38f593147479ee063f2872c170 ]

Code should first check for valid value of array offset, then use it as
the index.  Fixes smatch warning:

  drivers/memory/brcmstb_dpfe.c:443 __send_command() error: testing array offset 'cmd' after use.

Fixes: 2f330caff5 ("memory: brcmstb: Add driver for DPFE")
Acked-by: Markus Mayer <mmayer@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20230513112931.176066-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-10-02 12:12:04 +02:00
..
samsung
tegra
.gitignore
Kconfig
Makefile
atmel-ebi.c
atmel-sdramc.c memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe() 2023-03-21 10:08:57 +01:00
brcmstb_dpfe.c memory: brcmstb_dpfe: fix testing array offset after use 2023-10-02 12:12:04 +02:00
da8xx-ddrctl.c
emif-asm-offsets.c
emif.c
emif.h
fsl-corenet-cf.c
fsl_ifc.c
jedec_ddr.h
jedec_ddr_data.c
jz4780-nemc.c
mtk-smi.c
mvebu-devbus.c memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe() 2023-03-21 10:08:57 +01:00
of_memory.c memory: of: Fix refcount leak bug in of_get_ddr_timings() 2023-01-06 08:43:57 -08:00
of_memory.h
omap-gpmc.c
pl172.c
pl353-smc.c
ti-aemif.c
ti-emif-pm.c
ti-emif-sram-pm.S