Re: [PATCH net v5 05/14] net: pse-pd: do not reach a freed PHY from the notification worker

From: Carlo Szelinsky

Date: Fri Nov 20 2026 - 03:33:42 EST


On Fri, 20 Nov 2026 06:41:48 +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:
> Would wording like "NULL once the PI has been shared by several PHYs"
> match the code better?

Yes, that is better. The Return: line also misses the case where the
PHY has no net_device. I will fix both texts in a follow-up.

> This is a pre-existing issue, not one introduced by this patch, but can
> the worker still use a freed net_device here?

Yes, but this is older than the patch, as on v3. The cover letter
lists it.

Carlo