linux/arch
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
..
alpha
arc ARC: define __ALIGN_STR and __ALIGN symbols for ARC 2020-03-18 07:17:52 +01:00
arm ARM: dts: Fix dm814x Ethernet by changing to use rgmii-id mode 2020-04-17 10:49:57 +02:00
arm64 arm64: dts: ls1046ardb: set RGMII interfaces to RGMII_ID mode 2020-04-02 15:11:03 +02:00
c6x
csky
h8300
hexagon
ia64
m68k
microblaze
mips MIPS: OCTEON: irq: Fix potential NULL pointer dereference 2020-04-17 10:50:12 +02:00
nds32
nios2
openrisc
parisc
powerpc powerpc: Include .BTF section 2020-03-25 08:25:42 +01:00
riscv riscv: Fix range looking for kernel image memblock 2020-03-25 08:25:48 +01:00
s390 s390: prevent leaking kernel address in BEAR 2020-04-13 10:48:06 +02:00
sh
sparc
um
unicore32
x86 efi/x86: Add TPM related EFI tables to unencrypted mapping checks 2020-04-17 10:50:10 +02:00
xtensa
.gitignore
Kconfig