public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [v.1] clocksource:clps711x-timer:- Unmap a region obtained by remap
@ 2016-08-11 17:41 Arvind Yadav
  2016-08-16 13:04 ` Daniel Lezcano
  0 siblings, 1 reply; 3+ messages in thread
From: Arvind Yadav @ 2016-08-11 17:41 UTC (permalink / raw)
  To: daniel.lezcano, tglx
  Cc: shc_work, linux-kernel, linux-arm-kernel, Arvind Yadav

iounmap frees the mapping when timer id is not matching.

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-22 17:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11 17:41 [v.1] clocksource:clps711x-timer:- Unmap a region obtained by remap Arvind Yadav
2016-08-16 13:04 ` Daniel Lezcano
2016-08-22 17:42   ` arvind Yadav

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