[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180626193636.GC9800@lunn.ch>
Date: Tue, 26 Jun 2018 21:36:36 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Brandon Maier <brandon.maier@...kwellcollins.com>
Cc: netdev@...r.kernel.org, f.fainelli@...il.com, davem@...emloft.net,
michal.simek@...inx.com, clayton.shotwell@...kwellcollins.com,
kristopher.cory@...kwellcollins.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v2 1/3] net: phy: xgmiitorgmii: Check phy_driver
ready before accessing
On Tue, Jun 26, 2018 at 12:50:48PM -0500, Brandon Maier wrote:
> Since a phy_device is added to the global mdio_bus list during
> phy_device_register(), but a phy_device's phy_driver doesn't get
> attached until phy_probe(). It's possible of_phy_find_device() in
> xgmiitorgmii will return a valid phy with a NULL phy_driver. Leading to
> a NULL pointer access during the memcpy().
> Signed-off-by: Brandon Maier <brandon.maier@...kwellcollins.com>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists