Re: [PATCH] net: ftgmac100: Fix oops in probe on failure to find associated PHY

From: David Miller
Date: Tue Aug 22 2017 - 17:20:24 EST


From: Andrew Jeffery <andrew@xxxxxxxx>
Date: Tue, 22 Aug 2017 16:06:22 +0930

> netif_napi_del() should be paired with netif_napi_add(), however no
> such call takes place in ftgmac100_probe(). This triggers a NULL
> pointer dereference if e.g. no PHY is found by the MDIO probe:
...
> Signed-off-by: Andrew Jeffery <andrew@xxxxxxxx>

Applied, thanks.