From: Arvind Yadav <arvind.yadav.cs@gmail.com>
To: haver@linux.vnet.ibm.com, krisman@linux.vnet.ibm.com
Cc: linux-kernel@vger.kernel.org
Subject: [v1] misc: genwqe: card_base:-Release memory regions obtained by pci_request_mem_regions
Date: Wed, 4 Jan 2017 13:16:08 +0530 [thread overview]
Message-ID: <1483515968-20674-1-git-send-email-arvind.yadav.cs@gmail.com> (raw)
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
reply other threads:[~2017-01-04 7:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1483515968-20674-1-git-send-email-arvind.yadav.cs@gmail.com \
--to=arvind.yadav.cs@gmail.com \
--cc=haver@linux.vnet.ibm.com \
--cc=krisman@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.