[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140107151942.GA3231@htj.dyndns.org>
Date: Tue, 7 Jan 2014 10:19:42 -0500
From: Tejun Heo <tj@...nel.org>
To: Philipp Hachtmann <phacht@...ux.vnet.ibm.com>
Cc: akpm@...ux-foundation.org, jiang.liu@...wei.com,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
iamjoonsoo.kim@....com, hannes@...xchg.org,
tangchen@...fujitsu.com, toshi.kani@...com
Subject: Re: [PATCH 1/2] mm, nobootmem: Add return value check in
__alloc_memory_core_early()
On Tue, Jan 07, 2014 at 04:16:13PM +0100, Philipp Hachtmann wrote:
> When memblock_reserve() fails because memblock.reserved.regions cannot
> be resized, the caller (e.g. alloc_bootmem()) is not informed of the
> failed allocation. Therefore alloc_bootmem() silently returns the same
> pointer again and again.
> This patch adds a check for the return value of memblock_reserve() in
> __alloc_memory_core().
>
> Signed-off-by: Philipp Hachtmann <phacht@...ux.vnet.ibm.com>
Reviewed-by: Tejun Heo <tj@...nel.org>
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists