From: Sricharan R Date: Thu, 26 Jun 2014 07:10:29 +0000 (+0530) Subject: irqchip: crossbar: Set cb pointer to null in case of error X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=99e37d0ea607623f286b4841cc355e65b297170c;p=linux-beck.git irqchip: crossbar: Set cb pointer to null in case of error If crossbar_of_init returns with a error, then set the cb pointer to null. Signed-off-by: Sricharan R Acked-by: Santosh Shilimkar Link: https://lkml.kernel.org/r/1403766634-18543-12-git-send-email-r.sricharan@ti.com Signed-off-by: Jason Cooper --- diff --git a/drivers/irqchip/irq-crossbar.c b/drivers/irqchip/irq-crossbar.c index afc35fd1d9aa..a8c615692803 100644 --- a/drivers/irqchip/irq-crossbar.c +++ b/drivers/irqchip/irq-crossbar.c @@ -250,6 +250,8 @@ err_base: iounmap(cb->crossbar_base); err_cb: kfree(cb); + + cb = NULL; return ret; }