From: Geert Uytterhoeven Date: Mon, 27 May 2019 11:57:42 +0000 (+0200) Subject: genirq/irqdomain: Remove WARN_ON() on out-of-memory condition X-Git-Tag: v5.3-rc1~212^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43b98d876f89dce732f50b71607b6d2bbb8d8e6a;p=thirdparty%2Fkernel%2Flinux.git genirq/irqdomain: Remove WARN_ON() on out-of-memory condition There is no need to print a backtrace when memory allocation fails, as the memory allocation core already takes care of that. Signed-off-by: Geert Uytterhoeven Signed-off-by: Thomas Gleixner Cc: Marc Zyngier Link: https://lkml.kernel.org/r/20190527115742.2693-1-geert+renesas@glider.be --- diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index a453e229f99ca..e7d17cc3a3d7b 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -139,7 +139,7 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size, domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size), GFP_KERNEL, of_node_to_nid(of_node)); - if (WARN_ON(!domain)) + if (!domain) return NULL; if (fwnode && is_fwnode_irqchip(fwnode)) {