[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250423132645.GI48485@unreal>
Date: Wed, 23 Apr 2025 16:26:45 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: Jerome Brunet <jbrunet@...libre.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dave Ertman <david.m.ertman@...el.com>,
Ira Weiny <ira.weiny@...el.com>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Danilo Krummrich <dakr@...nel.org>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v2 next] driver core: auxiliary bus: Fix IS_ERR() vs NULL
mixup in __devm_auxiliary_device_create()
On Wed, Apr 23, 2025 at 01:04:26PM +0300, Dan Carpenter wrote:
> This code was originally going to use error pointers but we decided it
> should return NULL instead. The error pointer code in
> __devm_auxiliary_device_create() was left over from the first version.
> Update it to use NULL. No callers have been merged yet, so that makes
> this change simple and self contained.
>
> Fixes: eaa0d30216c1 ("driver core: auxiliary bus: add device creation helpers")
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
> ---
> v2: Originally I just updated the check for auxiliary_device_create()
> failure and returned ERR_PTR(-ENOMEM) but obviously the
> auxiliary_device_create() and devm_auxiliary_device_create()
> functions should return the same thing, NULL.
>
> drivers/base/auxiliary.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leon@...nel.org>
Powered by blists - more mailing lists