lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4d4dd1b6.83a0df0a.406e.3ed9@mx.google.com>
Date:	Sun, 6 Feb 2011 01:39:45 +0300
From:	Stanislav Fomichev <kernel@...ichev.me>
To:	linux-kernel@...r.kernel.org
Cc:	dsd@...top.org, sameo@...ux.intel.com
Subject: [PATCH] vx855: fix gpo resource releasing

While 'if' statement checks for the vg->gpo_reserved, the wrong argument
is passed to the release_region.

Signed-off-by: Stanislav Fomichev <kernel@...ichev.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ