[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected. No action required from the submitter.
The upstream commit SHA1 provided is correct: f744201c6159fc7323c40936fd079525f7063598
Note: The patch differs from the upstream commit: --- 1: f744201c6159f ! 1: 971cc4bebeda2 rust: devres: fix race in Devres::drop() @@ Metadata ## Commit message ## rust: devres: fix race in Devres::drop()
+ [ Upstream commit f744201c6159fc7323c40936fd079525f7063598 ] + In Devres::drop() we first remove the devres action and then drop the wrapped device resource.
@@ rust/kernel/devres.rs: struct DevresInner<T> { /// /// To achieve that [`Devres`] registers a devres callback on creation, which is called once the /// [`Device`] is unbound, revoking access to the encapsulated resource (see also [`Revocable`]). -@@ rust/kernel/devres.rs: fn new(dev: &Device<Bound>, data: T, flags: Flags) -> Result<Arc<DevresInner<T>> +@@ rust/kernel/devres.rs: fn new(dev: &Device, data: T, flags: Flags) -> Result<Arc<DevresInner<T>>> { dev: dev.into(), callback: Self::devres_callback, data <- Revocable::new(data), ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.4.y | Success | Success |