mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ARM: common: fiq_debugger: fix the cleanup on errors in probe
Change-Id: I58bd0604c0520b13e11bf02836eb4ddbadba1372 Signed-off-by: Dima Zavin <dima@android.com>
This commit is contained in:
parent
48ef31abe4
commit
0d5d8ecf75
|
|
@ -923,9 +923,12 @@ static int fiq_debugger_probe(struct platform_device *pdev)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user