OpenCloudOS-Kernel/arch
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
..
alpha arch: use memblock_alloc() instead of memblock_alloc_from(size, align, 0) 2019-03-12 10:04:01 -07:00
arc DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
arm memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
arm64 memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
c6x arch: don't memset(0) memory returned by memblock_alloc() 2019-03-12 10:04:01 -07:00
csky DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
h8300 arch: don't memset(0) memory returned by memblock_alloc() 2019-03-12 10:04:01 -07:00
hexagon y2038: additional syscall ABI cleanup 2019-02-27 21:45:27 +01:00
ia64 ia64: add checks for the return value of memblock_alloc*() 2019-03-12 10:04:01 -07:00
m68k arch: don't memset(0) memory returned by memblock_alloc() 2019-03-12 10:04:01 -07:00
microblaze arch: don't memset(0) memory returned by memblock_alloc() 2019-03-12 10:04:01 -07:00
mips arch: use memblock_alloc() instead of memblock_alloc_from(size, align, 0) 2019-03-12 10:04:01 -07:00
nds32 fscrypt updates for v5.1 2019-03-09 10:54:24 -08:00
nios2 nios2 update for v5.1-rc1 2019-03-10 10:13:37 -07:00
openrisc openrisc: prefer memblock APIs returning virtual address 2019-03-12 10:04:01 -07:00
parisc Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00
powerpc memblock: drop memblock_alloc_base() 2019-03-12 10:04:01 -07:00
riscv DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
s390 memblock: drop memblock_alloc_base() 2019-03-12 10:04:01 -07:00
sh memblock: drop __memblock_alloc_base() 2019-03-12 10:04:01 -07:00
sparc arch: don't memset(0) memory returned by memblock_alloc() 2019-03-12 10:04:01 -07:00
um a.out: remove core dumping support 2019-03-05 10:00:35 -08:00
unicore32 DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
x86 memblock: drop __memblock_alloc_base() 2019-03-12 10:04:01 -07:00
xtensa memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
.gitignore
Kconfig Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00