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: NPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Signed-off-by: NAshish Kumar <Ashish.Kumar@nxp.com> Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
Showing
想要评论请 注册 或 登录