Skip to content
Commit ea3b0b7f authored by David Thompson's avatar David Thompson Committed by Borislav Petkov (AMD)
Browse files

EDAC/bluefield: Don't use bluefield_edac_readl() result on error



The bluefield_edac_readl() routine returns an uninitialized result on error
paths. In those cases the calling routine should not use the uninitialized
result. The driver should simply log the error, and then return early.

Fixes: e4196757 ("EDAC/bluefield: Use Arm SMC for EMI access on BlueField-2")
Signed-off-by: default avatarDavid Thompson <davthompson@nvidia.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: default avatarShravan Kumar Ramani <shravankr@nvidia.com>
Link: https://lore.kernel.org/20250318214747.12271-1-davthompson@nvidia.com
parent 2b2408ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment