[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1483515968-20674-1-git-send-email-arvind.yadav.cs@gmail.com>
Date: Wed, 4 Jan 2017 13:16:08 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: haver@...ux.vnet.ibm.com, krisman@...ux.vnet.ibm.com
Cc: linux-kernel@...r.kernel.org
Subject: [v1] misc: genwqe: card_base:-Release memory regions obtained by pci_request_mem_regions
Free memory regions, if genwqe_bus_reset is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
drivers/misc/genwqe/card_base.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/misc/genwqe/card_base.c b/drivers/misc/genwqe/card_base.c
index 6c1f49a..a998d40 100644
--- a/drivers/misc/genwqe/card_base.c
+++ b/drivers/misc/genwqe/card_base.c
@@ -228,6 +228,7 @@ static int genwqe_bus_reset(struct genwqe_dev *cd)
if (cd->mmio == NULL) {
dev_err(&pci_dev->dev,
"[%s] err: mapping BAR0 failed\n", __func__);
+ pci_release_mem_regions(pci_dev);
return -ENOMEM;
}
return 0;
--
1.9.1
Powered by blists - more mailing lists