]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
clocksource/drivers/dw_apb_timer_of: Add handling for potential memory leak
authorDinh Nguyen <dinguyen@kernel.org>
Mon, 22 Mar 2021 12:18:44 +0000 (07:18 -0500)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 8 Apr 2021 11:24:53 +0000 (13:24 +0200)
commit397dc6f7ca3c858dc95800f299357311ccf679e6
tree1de07a84ed0dca92f02cdf82cc5a74aa39cc672d
parent690daddcb60246d8a510aaad7b954bcc53eba17e
clocksource/drivers/dw_apb_timer_of: Add handling for potential memory leak

Add calls to disable the clock and unmap the timer base address in case
of any failures.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210322121844.2271041-1-dinguyen@kernel.org
drivers/clocksource/dw_apb_timer_of.c