Re: [PATCH v14 1/4] phy: core: Fix use-after-free in phy_get paths

From: Bryan O'Donoghue

Date: Fri Sep 04 2026 - 05:57:28 EST


On 04/09/2026 08:45, Loic Poulain wrote:
- mutex_lock(&phy_provider_mutex);
Then, now we're moving the responsibility to the callers, maybe we should have:
lockdep_assert_held(&phy_provider_mutex)

An LLM suggested the same thing to me but, I thought the resulting patch "looked messy".

Do you want it added, its only three additional callsites.

---
bod