[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANn89iL_UVfFXiYGv4GDdtYOZeNDVEgYpRfKHxYDuvNYJU-XUg@mail.gmail.com>
Date: Fri, 26 Sep 2025 01:41:12 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: Zqiang <qiang.zhang@...ux.dev>
Cc: jlayton@...nel.org, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ref_tracker: Handling kmalloc() allocation failure in __ref_tracker_dir_pr_ostream()
On Fri, Sep 26, 2025 at 1:35 AM Zqiang <qiang.zhang@...ux.dev> wrote:
>
> The kmalloc() maybe fail to allocate, causing sbuf to be null. this
> commit therefore free stats memory and exit function when the sbuf
> is null.
>
> Signed-off-by: Zqiang <qiang.zhang@...ux.dev>
I think you forgot a Fixes: tag ?
Anyway, current code handles this case just fine, so your patch would
reduce the output of useful debug information.
Thank you.
Powered by blists - more mailing lists