diff options
author | Krzysztof Kozlowski <[email protected]> | 2023-05-13 13:29:31 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <[email protected]> | 2023-05-30 10:25:24 +0200 |
commit | 1d9e93fad549bc38f593147479ee063f2872c170 (patch) | |
tree | 6980243f23d41b3b8c4f22eb8fb382859497c285 /lib/test_fortify/write_overflow-strcpy.c | |
parent | 3d56c7364389fce14547803fef56d6f2cab5d366 (diff) |
memory: brcmstb_dpfe: fix testing array offset after use
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: 2f330caff577 ("memory: brcmstb: Add driver for DPFE")
Acked-by: Markus Mayer <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions