Commit 99e37d0ea607623f286b4841cc355e65b297170c

Authored by Sricharan R
Committed by Jason Cooper
1 parent 3c44d51512

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 <r.sricharan@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Link: https://lkml.kernel.org/r/1403766634-18543-12-git-send-email-r.sricharan@ti.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/irqchip/irq-crossbar.c
... ... @@ -250,6 +250,8 @@
250 250 iounmap(cb->crossbar_base);
251 251 err_cb:
252 252 kfree(cb);
  253 +
  254 + cb = NULL;
253 255 return ret;
254 256 }
255 257