Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1488188 > unrolled thread
| Started by | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| First post | 2016-09-21 17:20 +0200 |
| Last post | 2016-09-21 17:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] clocksource: timer-sp804: Unmap region obtained by of_iomap Arvind Yadav <arvind.yadav.cs@gmail.com> - 2016-09-21 17:20 +0200
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| Date | 2016-09-21 17:20 +0200 |
| Subject | [PATCH] clocksource: timer-sp804: Unmap region obtained by of_iomap |
| Message-ID | <sjRtw-2de-29@gated-at.bofh.it> |
Free memory mapping, if integrator_cp_of_init is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/clocksource/timer-sp804.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c
index d078633..419995d 100644
--- a/drivers/clocksource/timer-sp804.c
+++ b/drivers/clocksource/timer-sp804.c
@@ -306,6 +306,7 @@ static int __init integrator_cp_of_init(struct device_node *np)
clk = of_clk_get(np, 0);
if (IS_ERR(clk)) {
pr_err("Failed to get clock");
+ iounmap(base);
return PTR_ERR(clk);
}
--
2.7.4
Back to top | Article view | linux.kernel
csiph-web