]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci_ep: fix wrong addressing to barno
authorRamon Fried <rfried.dev@gmail.com>
Mon, 15 Jul 2019 20:04:41 +0000 (23:04 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2019 15:31:32 +0000 (11:31 -0400)
commiteb18742575158a680070002cf182b0c64311c1b2
tree7e5a098053de83715338f69cda6473553f6d20d2
parent80f485f6a4165d381ebeca9a10662b95b94151aa
pci_ep: fix wrong addressing to barno

barno was mistakely readed from the target structure,
resulting in undefined behavious depending on the previous memory
content. fix that.

Fixes: bb413337826e ("pci_ep: add pci endpoint sandbox driver")
Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
[trini: Drop unused bar_idx]
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/pci_endpoint/sandbox-pci_ep.c