projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48ef31a
)
ARM: common: fiq_debugger: fix the cleanup on errors in probe
author
Dima Zavin
<dima@android.com>
Thu, 20 Oct 2011 21:48:37 +0000
(14:48 -0700)
committer
Dima Zavin
<dima@android.com>
Wed, 26 Oct 2011 05:05:47 +0000
(22:05 -0700)
Change-Id: I58bd0604c0520b13e11bf02836eb4ddbadba1372
Signed-off-by: Dima Zavin <dima@android.com>
arch/arm/common/fiq_debugger.c
patch
|
blob
|
history
diff --git
a/arch/arm/common/fiq_debugger.c
b/arch/arm/common/fiq_debugger.c
index d44690dae546e43fb0f1773d87eddd5748f2b885..46bf7af88ff9537401c9f2f3830c941b46255ea9 100644
(file)
--- a/
arch/arm/common/fiq_debugger.c
+++ b/
arch/arm/common/fiq_debugger.c
@@
-923,9
+923,12
@@
err_register_fiq:
if (pdata->uart_free)
pdata->uart_free(pdev);
err_uart_init:
- kfree(state);
+ if (state->clk)
+ clk_disable(state->clk);
if (state->clk)
clk_put(state->clk);
+ wake_lock_destroy(&state->debugger_wake_lock);
+ kfree(state);
return ret;
}