OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c44d51
)
irqchip: crossbar: Set cb pointer to null in case of error
author
Sricharan R
<r.sricharan@ti.com>
Thu, 26 Jun 2014 07:10:29 +0000
(12:40 +0530)
committer
Jason Cooper
<jason@lakedaemon.net>
Mon, 30 Jun 2014 19:11:25 +0000
(19:11 +0000)
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>
drivers/irqchip/irq-crossbar.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-crossbar.c
b/drivers/irqchip/irq-crossbar.c
index
afc35fd
..
a8c6156
100644
(file)
--- 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;
}