linux-stable/drivers/memory
Krzysztof Kozlowski 9f79e638d4 memory: brcmstb_dpfe: fix testing array offset after use
[ Upstream commit 1d9e93fad5 ]

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>
2023-07-19 16:21:24 +02:00
..
samsung memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings 2022-06-06 11:18:20 +02:00
tegra memory: tegra30-emc: fix interconnect registration race 2023-03-22 13:33:56 +01:00
.gitignore
Kconfig memory: brcmstb_memc: Add Broadcom STB memory controller driver 2022-08-18 09:11:45 +03:00
Makefile memory: brcmstb_memc: Add Broadcom STB memory controller driver 2022-08-18 09:11:45 +03:00
atmel-ebi.c
atmel-sdramc.c memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe() 2023-02-01 08:34:02 +01:00
brcmstb_dpfe.c memory: brcmstb_dpfe: fix testing array offset after use 2023-07-19 16:21:24 +02:00
brcmstb_memc.c memory: brcmstb_memc: Add Broadcom STB memory controller driver 2022-08-18 09:11:45 +03:00
bt1-l2-ctl.c
da8xx-ddrctl.c
dfl-emif.c memory: dfl-emif: Update the dfl emif driver support revision 1 2022-08-16 12:12:04 +03:00
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 memory: mtk-smi: mt8188: Add SMI Support 2022-08-30 20:54:05 +03:00
mvebu-devbus.c memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe() 2023-02-01 08:34:02 +01:00
of_memory.c memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() 2022-08-16 12:12:06 +03:00
of_memory.h
omap-gpmc.c
pl172.c
pl353-smc.c memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe() 2022-08-16 12:12:03 +03:00
renesas-rpc-if.c memory: renesas-rpc-if: Move resource acquisition to .probe() 2023-03-11 13:55:17 +01:00
stm32-fmc2-ebi.c
ti-aemif.c
ti-emif-pm.c
ti-emif-sram-pm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00