On Thu, Mar 28, 2019 at 07:57:21AM +0200, Mike Rapoport wrote:
Hi,
On Wed, Mar 27, 2019 at 01:57:50PM -0400, Sasha Levin wrote:
From: Mike Rapoport <rppt@xxxxxxxxxxxxx>
[ Upstream commit 337555744e6e39dd1d87698c6084dd88a606d60a ]
The memblock_phys_alloc_try_nid() function tries to allocate memory from
the requested node and then falls back to allocation from any node in
the system. The memblock_alloc_base() fallback used by this function
panics if the allocation fails.
Replace the memblock_alloc_base() fallback with the direct call to
memblock_alloc_range_nid() and update the memblock_phys_alloc_try_nid()
callers to check the returned value and panic in case of error.
This is a part of memblock refactoring, I don't think it should be applied
to -stable.
Dropped, thanks!
--
Thanks,
Sasha