diff options
author | 2019-05-23 14:55:40 -0700 | |
---|---|---|
committer | 2019-06-11 10:55:36 +0100 | |
commit | 3041a643613a2530ade35a9ae97709a9da4c0c72 (patch) | |
tree | 88456033c500f82bf26e4af96e9ea065901b9ab9 /scripts/gdb/linux/utils.py | |
parent | PCI: endpoint: Allocate enough space for fixed size BAR (diff) | |
download | wireguard-linux-3041a643613a2530ade35a9ae97709a9da4c0c72.tar.xz wireguard-linux-3041a643613a2530ade35a9ae97709a9da4c0c72.zip |
PCI: endpoint: Skip odd BAR when skipping 64bit BAR
Always skip odd BAR when skipping 64bit BARs in pci_epf_test_set_bar()
and pci_epf_test_alloc_space() otherwise pci_epf_test_set_bar() will
call pci_epc_set_bar() on an odd loop index when skipping reserved 64bit
BAR.
Moreover, pci_epf_test_alloc_space() will call pci_epf_alloc_space() on
bind for an odd loop index when BAR is 64bit but leaks on subsequent
unbind by not calling pci_epf_free_space().
Signed-off-by: Alan Mikhak <alan.mikhak@sifive.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions