]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/moxart: Plug memory and mapping leaks
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sun, 18 Dec 2016 22:26:36 +0000 (22:26 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 19 Dec 2016 10:19:57 +0000 (11:19 +0100)
commit0fe7bb5a4d957356ea9af980d4868d1e36f14893
treebf2e4cb2375b202d0affeead14cdcdbc03b7b9f2
parent403ad8ef7c394b0b88fbc2d8f1e0093cc10d1901
clocksource/drivers/moxart: Plug memory and mapping leaks

If of_iomap() or any other subsequent function fails moxart_timer_init()
exits without freeing memory and unmapping the timer base.

Add proper cleanup points.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: http://lkml.kernel.org/r/1482099996-1524-1-git-send-email-sudipm.mukherjee@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/clocksource/moxart_timer.c