[PATCH] pci: Assign a default value on reads on error

Tom Rini trini at konsulko.com
Tue Jul 15 01:12:07 CEST 2025


On Mon, 07 Jul 2025 17:26:53 +0100, Andrew Goodbody wrote:

> 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.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] pci: Assign a default value on reads on error
      commit: 22039ef94a8f6e7f4fc04648dc5a0ee857927be3
-- 
Tom




More information about the U-Boot mailing list