Skip to content
Commit c9435f35 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Thomas Gleixner
Browse files

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: default avatarSudip 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: default avatarThomas Gleixner <tglx@linutronix.de>
parent b0b3a37b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment