[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7b533da9-f321-cb2d-b960-37dc7b8885a9@oracle.com>
Date: Wed, 3 Jun 2020 10:27:03 -0700
From: Mike Kravetz <mike.kravetz@...cle.com>
To: Barry Song <song.bao.hua@...ilicon.com>, akpm@...ux-foundation.org
Cc: guro@...com, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
linuxarm@...wei.com
Subject: Re: [PATCH 1/2] mm: cma: fix the name of CMA areas
On 6/3/20 1:40 AM, Barry Song wrote:
> if users give a name saved in stack, the current code will generate magic
> pointer.
> if users don't give a name(NULL), kasprintf() will always return NULL as
> we are at the early stage. that means cma_init_reserved_mem() will return
> -ENOMEM if users set name parameter as NULL.
>
> Cc: Roman Gushchin <guro@...com>
> Signed-off-by: Barry Song <song.bao.hua@...ilicon.com>
Thank you
Reviewed-by: Mike Kravetz <mike.kravetz@...cle.com>
--
Mike Kravetz
Powered by blists - more mailing lists