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:
|
||
|---|---|---|
| .. | ||
| samsung | ||
| tegra | ||
| .gitignore | ||
| Kconfig | ||
| Makefile | ||
| atmel-ebi.c | ||
| atmel-sdramc.c | ||
| brcmstb_dpfe.c | ||
| 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 | ||
| of_memory.c | ||
| of_memory.h | ||
| omap-gpmc.c | ||
| pl172.c | ||
| pl353-smc.c | ||
| ti-aemif.c | ||
| ti-emif-pm.c | ||
| ti-emif-sram-pm.S | ||