Re: [PATCH] mm: refactor mm_access() to not return NULL
From: Al Viro
Date: Tue Sep 24 2024 - 16:14:07 EST
On Tue, Sep 24, 2024 at 09:10:23PM +0100, Lorenzo Stoakes wrote:
> + if (IS_ERR(mm))
> + return PTR_ERR(mm) == -ESRCH ? NULL : mm;
Pet peeve: what's wrong with mm == ERR_PTR(-ESRCH)?