diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-07-07 17:26:53 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-07-14 15:16:48 -0600 |
commit | 22039ef94a8f6e7f4fc04648dc5a0ee857927be3 (patch) | |
tree | 17dd960b4ab1a944050a68730ec6679e6728a765 /drivers/ddr/marvell/a38x/old/ddr3_training_leveling.c | |
parent | 6a269b7fdefe3edc60a6218f1402f17206644628 (diff) |
pci: Assign a default value on reads on error
Many callers of PCI read functions do not check the return value for
error before using the variable that should contain the value read were
there not to be an error. However in the error case this variable is
never assigned to and so will contain uninitialised data.
To provide some certainty as to behaviour in the error case assign a
default value of all bits set.
This issue found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Diffstat (limited to 'drivers/ddr/marvell/a38x/old/ddr3_training_leveling.c')
0 files changed, 0 insertions, 0 deletions