Re: [PATCH] locking/atomics: Fix memory leak in bcm2835_timer_init

2019-10-21 Thread Florian Fainelli
On 10/21/19 1:13 PM, Navid Emamdoost wrote: > In the impelementation of bcm2835_timer_init() the allocated memory for > timer should be released if setup_irq() fails. s/impelementation/implementation/ and also the subject should probably be changed to better reflect the scope of the patch. With th

[PATCH] locking/atomics: Fix memory leak in bcm2835_timer_init

2019-10-21 Thread Navid Emamdoost
In the impelementation of bcm2835_timer_init() the allocated memory for timer should be released if setup_irq() fails. Fixes: 84c39b8b7d46 ("clocksource/drivers/bcm2835_timer: Unmap region obtained by of_iomap") Signed-off-by: Navid Emamdoost --- drivers/clocksource/bcm2835_timer.c | 1 + 1 fil