kernel_optimize_test/arch/mips/cavium-octeon
Gustavo A. R. Silva 792a402c28 MIPS: OCTEON: irq: Fix potential NULL pointer dereference
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>
2020-03-04 21:46:11 +01:00
..
crypto treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
executive MIPS: OCTEON: Replace SIZEOF_FIELD() macro 2019-12-09 10:33:50 -08: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
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
oct_ilm.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
octeon_boot.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
octeon-irq.c MIPS: OCTEON: irq: Fix potential NULL pointer dereference 2020-03-04 21:46:11 +01: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
Platform MIPS: Octeon: Remove vestiges of CONFIG_CAVIUM_OCTEON_2ND_KERNEL 2017-04-10 11:56:05 +02:00
setup.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
smp.c MIPS: OCTEON: smp: make internal symbols static 2018-11-21 15:36:43 -08:00