diff options
author | Sricharan R <r.sricharan@ti.com> | 2014-06-26 11:10:29 +0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-06-30 23:11:25 +0400 |
commit | 99e37d0ea607623f286b4841cc355e65b297170c (patch) | |
tree | 08d54361cdbc0dc9c4f3875807169bb72758883c | |
parent | 3c44d5151246947442f2fe8eede842e3f76dd2f1 (diff) | |
download | linux-99e37d0ea607623f286b4841cc355e65b297170c.tar.xz |
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>
-rw-r--r-- | drivers/irqchip/irq-crossbar.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |