1
0
Fork 0
alistair23-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 swiotlb: move the SWIOTLB config symbol to lib/Kconfig 2018-05-09 06:58:01 +02:00
Makefile MIPS: OCTEON: Platform support for OCTEON III USB controller 2017-02-14 08:52:46 +00:00
Platform MIPS: Octeon: Remove vestiges of CONFIG_CAVIUM_OCTEON_2ND_KERNEL 2017-04-10 11:56:05 +02:00
cpu.c MIPS: Add missing include files 2017-03-08 10:38:06 +01:00
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 MIPS: Octeon: Don't set .owner. 2015-04-08 01:10:53 +02:00
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 mips: get rid of tail-zeroing in primitives 2017-04-06 02:08:08 -04:00
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