netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix NULL pointer dereference in cpsw with two slave PHYs
@ 2016-04-13 14:36 Andrew Goodbody
  2016-04-13 14:36 ` [PATCH] Prevent NUll pointer dereference with two PHYs on cpsw Andrew Goodbody
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Goodbody @ 2016-04-13 14:36 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel, Andrew Goodbody

This is a fix for a NULL pointer dereference from cpsw which is triggered
by having two slave PHYs attached to a cpsw network device. The problem is
due to only maintaining a single reference to a PHY node in the prive data
which gets overwritten by the second PHY probe. So move the PHY node
reference to the individual slave data so that there is now one per slave.

Andrew Goodbody (1):
  Prevent NUll pointer dereference with two PHYs on cpsw

 drivers/net/ethernet/ti/cpsw.c | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-13 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-13 14:36 [PATCH] Fix NULL pointer dereference in cpsw with two slave PHYs Andrew Goodbody
2016-04-13 14:36 ` [PATCH] Prevent NUll pointer dereference with two PHYs on cpsw Andrew Goodbody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).