Yang Yingliang 8e4bfbe644 PCI: endpoint: pci-epf-vntb: fix error handle in epf_ntb_mw_bar_init()
In error case of epf_ntb_mw_bar_init(), memory window BARs should be
cleared, so add 'num_mws' parameter in epf_ntb_mw_bar_clear() and
calling it in error path to clear the BARs. Also add missing error
code when pci_epc_mem_alloc_addr() fails.

Fixes: ff32fac00d97 ("NTB: EPF: support NTB transfer between PCI RC and EP connection")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2022-08-09 17:54:40 -04:00
..
2022-05-31 09:56:54 -07:00
2021-06-16 17:20:40 -05:00
2022-03-07 12:06:10 -07:00
2020-07-29 14:25:18 -05:00
2022-03-09 18:30:46 -06:00
2022-03-09 18:30:46 -06:00
2022-05-31 09:56:54 -07:00
2022-05-27 15:25:10 -07:00
2022-05-31 09:56:54 -07:00
2022-01-16 08:08:11 +02:00
2022-03-22 11:23:53 -05:00
2021-02-10 16:46:29 -06:00
2022-03-22 17:16:21 -05:00
2021-09-28 13:43:17 -05:00
2020-08-05 18:23:14 -05:00