Re: [PATCH] rust: devres: initialize Devres::inner::data last

From: Danilo Krummrich
Date: Tue Jul 15 2025 - 04:23:48 EST


On Tue Jul 15, 2025 at 9:24 AM CEST, Alice Ryhl wrote:
> On Mon, Jul 14, 2025 at 01:32:35PM +0200, Danilo Krummrich wrote:
>> Users may want to access the Devres object from callbacks registered
>> through the initialization of Devres::inner::data.
>>
>> For those accesses to be valid, Devres::inner::data must be initialized
>> last [1].
>>
>> Credit to Boqun for spotting this [2].
>>
>> Link: https://lore.kernel.org/lkml/DBBPHO26CPBS.2OVI1OERCB2J5@xxxxxxxxxx/ [1]
>> Link: https://lore.kernel.org/lkml/aHSmxWeIy3L-AKIV@xxxxxxxx/ [2]
>> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
>> ---
>> base-commit: 3964d07dd821efe9680e90c51c86661a98e60a0f
>
> I couldn't find this commit. Where does this apply?

The commit is in driver-core-next.