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

From: Krzysztof Kozlowski
Date: Tue May 30 2023 - 04:26:27 EST



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@xxxxxxxxxx>