linux/arch/mips/cavium-octeon
Gustavo A. R. Silva 5bd5307cd2 MIPS: OCTEON: irq: Fix potential NULL pointer dereference
commit 792a402c28 upstream.

There is a potential NULL pointer dereference in case kzalloc()
fails and returns NULL.

Fix this by adding a NULL check on *cd*

This bug was detected with the help of Coccinelle.

Fixes: 64b139f97c ("MIPS: OCTEON: irq: add CIB and other fixes")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:50:12 +02:00
..
crypto treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
executive MIPS: fix some more fall through errors in arch/mips 2019-07-16 12:40:16 +01:00
Kconfig
Makefile
Platform
cpu.c
csrc-octeon.c MIPS: OCTEON: csrc-octeon: include linux/sched/clock.h 2018-11-21 15:36:42 -08:00
dma-octeon.c MIPS: Octeon: remove duplicated include from dma-octeon.c 2019-08-27 10:59:56 +01:00
flash_setup.c
oct_ilm.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
octeon-irq.c MIPS: OCTEON: irq: Fix potential NULL pointer dereference 2020-04-17 10:50:12 +02:00
octeon-memcpy.S
octeon-platform.c MIPS: OCTEON: program rx/tx-delay always from DT 2019-02-07 15:22:38 -08:00
octeon-usb.c MIPS: Annotate fall-through in Cavium Octeon code 2019-07-18 14:41:49 -07:00
octeon_boot.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
setup.c MIPS: OCTEON: Drop boot_mem_map 2019-08-23 14:47:05 +01:00
smp.c MIPS: OCTEON: smp: make internal symbols static 2018-11-21 15:36:43 -08:00