Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1378015

[PATCH] Fix NULL pointer dereference in cpsw with two slave PHYs

From Andrew Goodbody <andrew.goodbody@cambrionix.com>
Newsgroups linux.kernel
Subject [PATCH] Fix NULL pointer dereference in cpsw with two slave PHYs
Date 2016-04-13 16:50 +0200
Message-ID <rnuhc-2Hz-29@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] Fix NULL pointer dereference in cpsw with two slave PHYs Andrew Goodbody <andrew.goodbody@cambrionix.com> - 2016-04-13 16:50 +0200

csiph-web