linux/arch/mips
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
..
alchemy
ar7
ath25
ath79
bcm47xx
bcm63xx MIPS: bmips: mark exception vectors as char arrays 2019-10-23 21:07:28 -07:00
bmips
boot MIPS: boot: fix typo in 'vmlinux.lzma.its' target 2020-02-11 04:35:17 -08:00
cavium-octeon MIPS: OCTEON: irq: Fix potential NULL pointer dereference 2020-04-17 10:50:12 +02:00
cobalt
configs
crypto
dec
emma
fw MIPS: fw: sni: Fix out of bounds init of o32 stack 2019-10-09 12:47:28 -07:00
generic
include mips: Fix gettimeofday() in the vdso library 2020-01-17 19:49:04 +01:00
jazz
jz4740
kernel MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()' 2020-03-05 16:43:45 +01:00
kvm
lantiq
lasat
lib
loongson32
loongson64 MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() 2020-02-24 08:36:27 +01:00
math-emu
mm MIPS/tlbex: Fix LDDIR usage in setup_pw() for Loongson-3 2020-04-17 10:50:12 +02:00
mti-malta
net bpf, mips: Limit to 33 tail calls 2020-01-12 12:21:24 +01:00
netlogic
oprofile
paravirt
pci MIPS: PCI: remember nasid changed by set interrupt affinity 2020-01-17 19:48:54 +01:00
pic32
pistachio
pmcs-msp71xx
pnx833x
power
ralink MIPS: ralink: enable PCI support only if driver for mt7621 SoC is selected 2019-12-31 16:45:29 +01:00
rb532
sgi-ip22
sgi-ip27 MIPS: SGI-IP27: Fix crash, when CPUs are disabled via nr_cpus parameter 2020-01-17 19:48:55 +01:00
sgi-ip32
sibyte
sni
tools
txx9
vdso mips: Fix gettimeofday() in the vdso library 2020-01-17 19:49:04 +01:00
vr41xx
Kbuild
Kbuild.platforms
Kconfig MIPS: BPF: eBPF JIT: check for MIPS ISA compliance in Kconfig 2020-01-09 10:19:56 +01:00
Kconfig.debug
Makefile
Makefile.postlink MIPS: fix indentation of the 'RELOCS' message 2020-02-11 04:35:16 -08:00