Thread (35 messages) 35 messages, 10 authors, 2019-01-18

Re: [PATCH 15/21] sparc: add checks for the return value of memblock_alloc*()

From: David Miller <davem@davemloft.net>
Date: 2019-01-16 17:21:55
Also in: linux-alpha, linux-arm-kernel, linux-devicetree, linux-mips, linux-mm, linux-s390, linux-sh, linux-um, linux-usb, lkml, sparclinux

From: Mike Rapoport <redacted>
Date: Wed, 16 Jan 2019 15:44:15 +0200
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 pcpu_populate_pte() and kernel_map_range() that were
slightly refactored to accommodate the change.

Signed-off-by: Mike Rapoport <redacted>
Acked-by: David S. Miller <davem@davemloft.net>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help