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>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 11 Aug 2016 23:11:48 +0530
From:	Arvind Yadav <arvind.yadav.cs@...il.com>
To:	daniel.lezcano@...aro.org, tglx@...utronix.de
Cc:	shc_work@...l.ru, linux-kernel@...r.kernel.org,
	linux-arm-kernel@...ts.infradead.org,
	Arvind Yadav <arvind.yadav.cs@...il.com>
Subject: [v.1] clocksource:clps711x-timer:- Unmap a region obtained by remap

iounmap frees the mapping when timer id is not matching.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
 drivers/clocksource/clps711x-timer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clps711x-timer.c
index 84aed78..deaca51 100644
--- a/drivers/clocksource/clps711x-timer.c
+++ b/drivers/clocksource/clps711x-timer.c
@@ -116,6 +116,7 @@ static int __init clps711x_timer_init(struct device_node *np)
 	case CLPS711X_CLKSRC_CLOCKEVENT:
 		return _clps711x_clkevt_init(clock, base, irq);
 	default:
+		iounmap(base);
 		return -EINVAL;
 	}
 }
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ