mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [v1] misc: genwqe: card_base:-Release memory regions obtained by pci_request_mem_regions
@ 2017-01-04  7:46 Arvind Yadav
  0 siblings, 0 replies; only message in thread
From: Arvind Yadav @ 2017-01-04  7:46 UTC (permalink / raw)
  To: haver, krisman; +Cc: linux-kernel

Free memory regions, if genwqe_bus_reset is not successful.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-04  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04  7:46 [v1] misc: genwqe: card_base:-Release memory regions obtained by pci_request_mem_regions Arvind Yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®