diff options
| author | Yu Kuai <[email protected]> | 2020-11-16 13:51:23 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2020-12-03 18:16:26 +0000 |
| commit | eee422c46e6840a81c9db18a497b74387a557b29 (patch) | |
| tree | 2f9cad1f62355180a53dadbbb407ab1045133f95 /drivers/clocksource/timer-orion.c | |
| parent | dt-bindings: timer: renesas: tmu: Convert to json-schema (diff) | |
| download | kernel-eee422c46e6840a81c9db18a497b74387a557b29.tar.gz kernel-eee422c46e6840a81c9db18a497b74387a557b29.zip | |
clocksource/drivers/cadence_ttc: Fix memory leak in ttc_setup_clockevent()
If clk_notifier_register() failed, ttc_setup_clockevent() will return
without freeing 'ttcce', which will leak memory.
Fixes: 70504f311d4b ("clocksource/drivers/cadence_ttc: Convert init function to return error")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/clocksource/timer-orion.c')
0 files changed, 0 insertions, 0 deletions
