NTB: hw: amd: fix an issue about leak system resources
The related system resources were not released when pci_set_dma_mask(), pci_set_consistent_dma_mask(), or pci_iomap() return error in the amd_ntb_init_pci() function. Add pci_release_regions() to fix it. Fixes: a1b36958 ("NTB: Add support for AMD PCI-Express Non-Transparent Bridge") Signed-off-by: NKaige Li <likaige@loongson.cn> Signed-off-by: NJon Mason <jdmason@kudzu.us>
Showing
想要评论请 注册 或 登录