net: lantiq: fix missing free_netdev() on error in ltq_etop_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 30 Nov 2021 03:38:37 +0000 (11:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Nov 2021 12:11:27 +0000 (12:11 +0000)
commit2680ce7fc9939221da16e86a2e73cc1df563c82c
treef240b1148441888b26724ba924f7c440360fc06e
parent6130805066659cda3d685fc4c8d912c72a005ef5
net: lantiq: fix missing free_netdev() on error in ltq_etop_probe()

Add the missing free_netdev() before return from ltq_etop_probe()
in the error handling case.

Fixes: 14d4e308e0aa ("net: lantiq: configure the burst length in ethernet drivers")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/lantiq_etop.c