Re: [PATCH net-next] net: ethernet: mediatek: get out of potential invalid pointer access

From: David Miller
Date: Thu Sep 22 2016 - 08:23:49 EST


From: <sean.wang@xxxxxxxxxxxx>
Date: Thu, 22 Sep 2016 16:44:16 +0800

> From: Sean Wang <sean.wang@xxxxxxxxxxxx>
>
> Potential dangerous invalid pointer might be accessed if
> the error happens when couple phy_device to net_device so
> cleanup the error path.
>
> Signed-off-by: Sean Wang <sean.wang@xxxxxxxxxxxx>

Applied.