linux-stable/drivers/memory
Krzysztof Kozlowski 105af71974 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-27 08:43:48 +02:00
..
samsung memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings 2022-06-29 08:59:54 +02:00
tegra
.gitignore
Kconfig
Makefile
atmel-ebi.c memory: atmel-ebi: Fix missing of_node_put in atmel_ebi_probe 2022-04-20 09:23:10 +02:00
atmel-sdramc.c memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe() 2023-02-01 08:23:08 +01:00
brcmstb_dpfe.c memory: brcmstb_dpfe: fix testing array offset after use 2023-07-27 08:43:48 +02:00
bt1-l2-ctl.c
da8xx-ddrctl.c
emif-asm-offsets.c
emif.c memory: emif: check the pointer temp in get_device_details() 2022-04-08 14:40:09 +02:00
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-02-01 08:23:08 +01:00
of_memory.c memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() 2022-10-26 13:25:28 +02:00
of_memory.h
omap-gpmc.c
pl172.c amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
pl353-smc.c memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe() 2022-10-26 13:25:28 +02:00
renesas-rpc-if.c memory: renesas-rpc-if: Fix HF/OSPI data transfer in Manual Mode 2022-05-09 09:05:02 +02:00
stm32-fmc2-ebi.c
ti-aemif.c
ti-emif-pm.c
ti-emif-sram-pm.S