Re: [PATCH] hwmon: (pmbus/core) Avoid race condition during probe

[email protected] Mon, 03 Aug 2026 19:40:53 +0000
Newsgroups org.kernel.vger.linux-hwmon
Message-ID <[email protected]>
> pmbus_write_smbalert_mask() is not guarded, which can cause race conditio=
ns
> with concurrent sysfs attribute accesses.
>=20
> Similar, PMBus accesses in pmbus_init_debugfs() are not guarded, also
> resulting in potential race conditions.
>=20
> Add guards to both functions to prevent the races.
>=20
> Fixes: 221819ca4c36e ("hwmon: (pmbus/core) Add interrupt support")
> Fixes: 1e069dfd96dfe ("hwmon: (pmbus) Add debugfs for status registers")
> Signed-off-by: Guenter Roeck <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

--=20
Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260803193033.2285=
[email protected]?part=3D1