Commit 99e37d0e authored by Sricharan R's avatar Sricharan R Committed by Jason Cooper

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: default avatarSricharan R <r.sricharan@ti.com>
Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Link: https://lkml.kernel.org/r/1403766634-18543-12-git-send-email-r.sricharan@ti.comSigned-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 3c44d515
......@@ -250,6 +250,8 @@ static int __init crossbar_of_init(struct device_node *node)
iounmap(cb->crossbar_base);
err_cb:
kfree(cb);
cb = NULL;
return ret;
}
......
Markdown is supported
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