[PATCH] memory: brcmstb_dpfe: fix testing array offset after use

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Tue May 30 01:26:17 PDT 2023


On Sat, 13 May 2023 13:29:31 +0200, Krzysztof Kozlowski wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] memory: brcmstb_dpfe: fix testing array offset after use
      https://git.kernel.org/krzk/linux-mem-ctrl/c/1d9e93fad549bc38f593147479ee063f2872c170

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>



More information about the linux-arm-kernel mailing list