projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c50495a
)
of: irq: Remove WARN_ON() for kzalloc() failure
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Thu, 2 May 2019 12:40:15 +0000
(14:40 +0200)
committer
Rob Herring
<robh@kernel.org>
Thu, 2 May 2019 21:38:00 +0000
(16:38 -0500)
There is no need to print a backtrace if kzalloc() fails, as the memory
allocation core already takes care of that.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/irq.c
patch
|
blob
|
history
diff --git
a/drivers/of/irq.c
b/drivers/of/irq.c
index
e1f6f39
..
7f84bb4
100644
(file)
--- a/
drivers/of/irq.c
+++ b/
drivers/of/irq.c
@@
-500,7
+500,7
@@
void __init of_irq_init(const struct of_device_id *matches)
* pointer, interrupt-parent device_node etc.
*/
desc = kzalloc(sizeof(*desc), GFP_KERNEL);
- if (
WARN_ON(!desc)
) {
+ if (
!desc
) {
of_node_put(np);
goto err;
}