diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2019-02-15 11:29:16 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-02-20 17:44:34 +1100 |
commit | 34e4e415ff90c841fe5576b6faca6edec1a38fdf (patch) | |
tree | 8f3360534e07d1c2cb17e1203242455e0c4e5c74 | |
parent | 2f63170ede9302d2ed4aa5bd9ca34d44c31b6006 (diff) |
mm/sparse: don't panic if the allocation in sparse_buffer_init fails
Addition of panic if memblock_alloc_try_nid_raw() call in
sparse_buffer_init() fails was over enthusiastic as the system is
perfectly capable to deal with that allocation failure. Remove the
panic().
Link: http://lkml.kernel.org/r/20190131074018.GD28876@rapoport-lnx
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | mm/sparse.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index 19eb8b7bc263..a2a2784133a9 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -438,10 +438,6 @@ static void __init sparse_buffer_init(unsigned long size, int nid) memblock_alloc_try_nid_raw(size, PAGE_SIZE, addr, MEMBLOCK_ALLOC_ACCESSIBLE, nid); - if (!sparsemap_buf) - panic("%s: Failed to allocate %lu bytes align=0x%lx nid=%d from=%pa\n", - __func__, size, PAGE_SIZE, nid, &addr); - sparsemap_buf_end = sparsemap_buf + size; } |