]> git.sur5r.net Git - u-boot/commit
driver: net: ldpaa: Update priv->phydev after free()
authorPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Wed, 15 Feb 2017 15:26:03 +0000 (20:56 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 14 Aug 2017 17:47:33 +0000 (12:47 -0500)
commita5fe87e829487cb5589afba3b5d8c3adff3b077d
treeb435c59517aaea2fd10c2e84ac9d63debd560cb3
parentd2c319792210c2db518235eb8e90979a311bbf73
driver: net: ldpaa: Update priv->phydev after free()

Even after memory free of phydev, priv is still pointing to the
obsolete address.
So update priv->phydev as NULL after memory free.

Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ldpaa_eth/ldpaa_eth.c