linux-stable/drivers/memory
Krzysztof Kozlowski e88c77ed9a 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:35:53 +02:00
..
samsung memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings 2022-06-06 11:18:20 +02:00
tegra ARM: SoC drivers for v6.4 2023-04-25 12:02:16 -07:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig memory: stm32-fmc2-ebi: depends on ARCH_STM32 instead of MACH_STM32MP157 2023-03-27 18:04:56 +02:00
Makefile ARM updates for 6.2 2022-12-13 15:22:14 -08:00
atmel-ebi.c memory: atmel-ebi: Use of_property_present() for testing DT property presence 2023-03-13 07:53:45 +01:00
atmel-sdramc.c memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe() 2022-12-27 09:53:52 +01:00
brcmstb_dpfe.c memory: brcmstb_dpfe: fix testing array offset after use 2023-07-19 16:35:53 +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 memory: remove MODULE_LICENSE in non-modules 2023-03-09 15:20:50 +01:00
da8xx-ddrctl.c memory: remove MODULE_LICENSE in non-modules 2023-03-09 15:20:50 +01:00
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 More power management updates for 5.19-rc1 2022-05-30 11:37:26 -07:00
emif.h
fsl-corenet-cf.c memory: fsl-corenet-cf: Use helper function devm_platform_ioremap_resource() 2022-04-19 16:59:03 +02:00
fsl_ifc.c memory: remove MODULE_LICENSE in non-modules 2023-03-09 15:20:50 +01:00
jedec_ddr.h memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
jedec_ddr_data.c memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
jz4780-nemc.c memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe() 2020-12-05 14:57:52 +01:00
mtk-smi.c memory: mtk-smi: mt8365: Add SMI Support 2023-04-10 18:57:15 +02:00
mvebu-devbus.c memory: remove MODULE_LICENSE in non-modules 2023-03-09 15:20:50 +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 memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
omap-gpmc.c memory: omap-gpmc: fix wait pin validation 2022-12-27 09:51:24 +01:00
pl172.c amba: Make the remove callback return void 2021-02-02 14:25:50 +01:00
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: Remove redundant division of dummy 2023-02-09 14:06:11 +01:00
stm32-fmc2-ebi.c memory: stm32-fmc2-ebi: add missing of_node_put for loop iteration 2021-05-11 08:49:18 -04:00
ti-aemif.c memory: ti-emif: simplify platform_get_resource() 2022-04-26 09:48:25 +02:00
ti-emif-pm.c memory: ti-emif-pm: Use device_get_match_data() to simplify the code 2023-01-23 11:48:31 +01:00
ti-emif-sram-pm.S ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00