[PATCH v2 0/2] rust: serdev: Mitigate race conditions

From: Markus Probst

Date: Sat Sep 05 2026 - 09:33:55 EST


For details, see the commit messages.

I will submit a patch (for the next merge cycle) soon, which will
make the probe and unbind code less convoluted. This will make bugs like
these more unlikely.

Signed-off-by: Markus Probst <markus.probst@xxxxxxxxx>
---
Changes in v2:
- also fix race condition on unbind
- Link to v1: https://patch.msgid.link/20260905-rust_serdev_fix-v1-1-2ea92b154a6b@xxxxxxxxx

---
Markus Probst (2):
rust: serdev: Fix race condition on driver unbind
rust: serdev: Fix race condition on driver probe

rust/kernel/device.rs | 16 +++++++++-------
rust/kernel/driver.rs | 2 +-
rust/kernel/serdev.rs | 2 +-
3 files changed, 11 insertions(+), 9 deletions(-)
---
base-commit: e5e04726cdd043e309677071ab1b65a4b18f422b
change-id: 20260904-rust_serdev_fix-be3ff9c8a5e8