Re: [PATCH] tools/mm/page_owner_sort: report get_comm failures at source

From: Andrew Morton

Date: Mon Jun 29 2026 - 23:33:35 EST


On Mon, 29 Jun 2026 14:25:46 +0800 Yichong Chen <chenyichong@xxxxxxxxxxxxx> wrote:

> get_comm() clears errno and checks it immediately, without any
> operation that can set errno in between. The check can never be
> true.
>
> Print the concrete get_comm() failure reason where it is detected,
> and let callers handle a NULL return without guessing the error
> cause.

Thanks.

AI review has an observation:
https://sashiko.dev/#/patchset/20260629062546.141659-1-chenyichong@xxxxxxxxxxxxx