From: Stanislav Fomichev <kernel@fomichev.me>
To: linux-kernel@vger.kernel.org
Cc: dsd@laptop.org, sameo@linux.intel.com
Subject: [PATCH] vx855: fix gpo resource releasing
Date: Sun, 6 Feb 2011 01:39:45 +0300 [thread overview]
Message-ID: <4d4dd1b6.83a0df0a.406e.3ed9@mx.google.com> (raw)
While 'if' statement checks for the vg->gpo_reserved, the wrong argument
is passed to the release_region.
Signed-off-by: Stanislav Fomichev <kernel@fomichev.me>
---
drivers/gpio/vx855_gpio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpio/vx855_gpio.c b/drivers/gpio/vx855_gpio.c
index 8a98ee5..81d7256 100644
--- a/drivers/gpio/vx855_gpio.c
+++ b/drivers/gpio/vx855_gpio.c
@@ -277,7 +277,7 @@ out_release:
if (vg->gpi_reserved)
release_region(res_gpi->start, resource_size(res_gpi));
if (vg->gpo_reserved)
- release_region(res_gpi->start, resource_size(res_gpo));
+ release_region(res_gpo->start, resource_size(res_gpo));
platform_set_drvdata(pdev, NULL);
kfree(vg);
return ret;
--
1.7.1
reply other threads:[~2011-02-05 22:39 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=4d4dd1b6.83a0df0a.406e.3ed9@mx.google.com \
--to=kernel@fomichev.me \
--cc=dsd@laptop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox