Re: [PATCH net 1/2] net: arcnet: com20020-pci: clean up failed channels

From: Andrew Lunn

Date: Tue Sep 15 2026 - 12:22:31 EST


On Mon, Sep 14, 2026 at 09:39:45PM -0400, Myeonghun Pak wrote:
> After com20020_found() registers a netdev and requests its IRQ, seven
> allocation or LED-registration failure paths free the netdev without
> unregistering it or freeing the IRQ. The unfinished channel is not yet
> on list_dev, so the common remove path cannot clean it up.
>
> Route those failures through unregister_netdev() and free_irq() before
> free_arcdev(). Keep failures before successful com20020_found() on the
> existing free-only path.
>
> This issue was identified during our ongoing static-analysis research
> while reviewing kernel code.
>
> Fixes: 6b17a597fc2f ("arcnet: restoring support for multiple Sohard Arcnet cards")

I think this tag is wrong. Please check it.

Andrew