]> git.baikalelectronics.ru Git - uboot.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)
commit611b33ab689eafa6f86d33a8edb85d874109bbe7
tree7e5a098053de83715338f69cda6473553f6d20d2
parentadf944405a4626f7fec42890333f6753d4952d32
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: 45d780905fcc ("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