Re: [PATCH net-next v8 3/7] net: pse-pd: unwind allocations when controller registration fails
From: Carlo Szelinsky
Date: Sat Oct 17 2026 - 18:47:32 EST
On Mon, 05 Oct 2026 16:43:05 +0000, sashiko-bot@xxxxxxxxxx wrote:
> [Severity: High]
> Does setting pcdev->pi[i].pw_d to NULL here without holding pcdev->lock
> introduce a race condition with concurrent sysfs accesses?
Yes, agreed. In v9 pi[].pw_d is cleared under pcdev->lock, so a
regulator op that holds the lock sees either the old domain or NULL,
never a change in between.
Carlo