On Tue, Nov 03, 2026 at 10:05:29AM +0000, Wentao Liang wrote:
dsa_loop_drv_probe() takes a reference on the CPU net_device with
dev_get_by_name() before calling dsa_register_switch(). The matching
dev_put() is only done in dsa_loop_drv_remove(), which the driver core
does not call after a failed probe, so every failed registration leaks
the reference.
Please read:
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
You must indicate which tree this is for.
And please think carefully about which tree you pick. Does the issue
actually bother anybody?
Andrew
---
pw-bot: cr