From: Andy Duan <fugang.d...@nxp.com> Date: Thu, 23 May 2019 01:55:23 +0000
> @@ -3146,7 +3150,10 @@ static int fec_enet_init(struct net_device *ndev) > memset(cbd_base, 0, bd_size); > > /* Get the Ethernet address */ > - fec_get_mac(ndev); > + ret = fec_get_mac(ndev); > + if (ret) > + return ret; You're leaking the queues allocated by fec_enet_alloc_queue().