linux/arch/ia64/sn/kernel
Mike Rapoport d80db5c1ed ia64: add checks for the return value of memblock_alloc*()
Add panic() calls if memblock_alloc*() returns NULL.

Most of the changes are simply addition of

	if(!ptr)
		panic();

statements after the calls to memblock_alloc*() variants.

Exceptions are create_mem_map_page_table() and ia64_log_init() that were
slightly refactored to accommodate the change.

Link: http://lkml.kernel.org/r/1548057848-15136-15-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: Christoph Hellwig <hch@lst.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Guo Ren <guoren@kernel.org>
Cc: Guo Ren <ren_guo@c-sky.com>				[c-sky]
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Juergen Gross <jgross@suse.com>			[Xen]
Cc: Mark Salter <msalter@redhat.com>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Rich Felker <dalias@libc.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Stafford Horne <shorne@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-03-12 10:04:01 -07:00
..
sn2 proc: introduce proc_create_single{,_data} 2018-05-16 07:23:35 +02:00
bte_error.c ia64: Convert timers to use timer_setup() 2017-11-02 15:50:33 -07:00
bte.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
huberror.c ia64: Convert timers to use timer_setup() 2017-11-02 15:50:33 -07:00
idle.c
io_acpi_init.c ia64/PCI: Remove unused 'addr' and fix build warning 2016-05-05 10:29:14 -07:00
io_common.c ia64: add checks for the return value of memblock_alloc*() 2019-03-12 10:04:01 -07:00
io_init.c ia64/PCI: Fix incorrect PCI resource end address 2016-05-05 10:29:13 -07:00
iomv.c ia64, scsi: update references for the device-io book 2017-05-16 08:44:21 -03:00
irq.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
klconflib.c
machvec.c
Makefile ia64: change to new flag variables 2011-03-17 14:02:56 +01:00
mca.c ia64: Convert timers to use timer_setup() 2017-11-02 15:50:33 -07:00
msi_sn.c ia64/irq: Use access helper irq_data_get_affinity_mask() 2015-07-27 13:36:37 +02:00
pio_phys.S
setup.c ia64: add checks for the return value of memblock_alloc*() 2019-03-12 10:04:01 -07:00
tiocx.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00