[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1595580124-407-1-git-send-email-likaige@loongson.cn>
Date: Fri, 24 Jul 2020 16:42:04 +0800
From: Kaige Li <likaige@...ngson.cn>
To: Sanjay R Mehta <sanju.mehta@....com>,
Shyam Sundar S K <Shyam-sundar.S-k@....com>,
Jon Mason <jdmason@...zu.us>,
Dave Jiang <dave.jiang@...el.com>,
Allen Hubbe <allenbh@...il.com>
Cc: linux-ntb@...glegroups.com, linux-kernel@...r.kernel.org,
Xuefeng Li <lixuefeng@...ngson.cn>,
Tiezhu Yang <yangtiezhu@...ngson.cn>
Subject: [PATCH] NTB: hw: amd: Add missed pci_release_region
The driver forgets to call pci_release_region() in init_pci failure.
Add the missed call to fix it.
Signed-off-by: Kaige Li <likaige@...ngson.cn>
---
drivers/ntb/hw/amd/ntb_hw_amd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c
index 88e1db6..71428d8 100644
--- a/drivers/ntb/hw/amd/ntb_hw_amd.c
+++ b/drivers/ntb/hw/amd/ntb_hw_amd.c
@@ -1203,6 +1203,7 @@ static int amd_ntb_init_pci(struct amd_ntb_dev *ndev,
err_dma_mask:
pci_clear_master(pdev);
+ pci_release_regions(pdev);
err_pci_regions:
pci_disable_device(pdev);
err_pci_enable:
--
2.1.0
Powered by blists - more mailing lists