[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2026013142-evaluate-width-50a9@gregkh>
Date: Sat, 31 Jan 2026 07:23:51 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Danilo Krummrich <dakr@...nel.org>
Cc: rafael@...nel.org, hanguidong02@...il.com, driver-core@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] driver core: fix inverted "locked" suffix of
driver_match_device()
On Sat, Jan 31, 2026 at 02:42:07AM +0100, Danilo Krummrich wrote:
> In the current implementation driver_match_device() expects the device
> lock to be held, while driver_match_device_locked() acquires the device
> lock.
>
> By convention it should be the other way around, hence swap the name of
> both functions.
>
> Fixes: dc23806a7c47 ("driver core: enforce device_lock for driver_match_device()")
> Signed-off-by: Danilo Krummrich <dakr@...nel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Powered by blists - more mailing lists