android_kernel_samsung_univ.../arch/mips/cavium-octeon
Colin Ian King 175b57ba7d MIPS: OCTEON: irq: Check for null return on kzalloc allocation
commit 902f4d067a50ccf645a58dd5fb1d113b6e0f9b5b upstream.

The allocation of host_data is not null checked, leading to a null
pointer dereference if the allocation fails. Fix this by adding a null
check and return with -ENOMEM.

Fixes: 64b139f97c ("MIPS: OCTEON: irq: add CIB and other fixes")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: David Daney <david.daney@cavium.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: "Steven J. Hill" <Steven.Hill@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 4.0+
Patchwork: https://patchwork.linux-mips.org/patch/18658/
Signed-off-by: James Hogan <jhogan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-18 11:17:49 +01:00
..
crypto
executive MIPS: Octeon: Fix management port MII address on Kontron S1901 2015-09-03 12:08:11 +02:00
cpu.c
csrc-octeon.c
dma-octeon.c dma-mapping: consolidate dma_{alloc,free}_{attrs,coherent} 2015-09-10 13:29:01 -07:00
flash_setup.c
Kconfig
Makefile
oct_ilm.c
octeon_boot.h
octeon-irq.c MIPS: OCTEON: irq: Check for null return on kzalloc allocation 2018-03-18 11:17:49 +01:00
octeon-memcpy.S MIPS: OCTEON: Fix copy_from_user fault handling for large buffers 2017-03-12 06:37:23 +01:00
octeon-platform.c
Platform
setup.c MIPS: Octeon: Support APPENDED_DTB 2015-11-12 11:35:48 +01:00
smp.c MIPS: SMP: Don't increment irq_count multiple times for call function IPIs 2015-08-03 09:25:12 +02:00