[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <37577635-89c9-4afe-a30d-add02c0eb896@arm.com>
Date: Thu, 29 Aug 2024 13:09:58 +0530
From: Dev Jain <dev.jain@....com>
To: Markus Elfring <Markus.Elfring@....de>,
Zhu Jun <zhujun2@...s.chinamobile.com>, linux-mm@...ck.org,
kernel-janitors@...r.kernel.org, Andrew Morton <akpm@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] tools/mm: Use calloc and check the potential memory
allocation failure
On 8/29/24 11:55, Markus Elfring wrote:
>> Replace malloc with calloc and add memory allocating check
> memset(…, 0, …) call by calloc()?
Calloc returns zeroed-out memory.
>
>
>> of comm_str before used.
> * Add also a null pointer check for the detection of a memory allocation failure.
Which is exactly what Zhu has done?
>
> * Would you like to improve such a change description another bit
> (with tags like “Fixes” and “Cc”)?
>
> * How do you think about to omit the statement “fprintf(stderr, "Out of memory\n");”?
Why?
>
> * I suggest to omit the word “potential” from the summary phrase.
>
>
> Regards,
> Markus
>
Powered by blists - more mailing lists