[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1461074186-25535-1-git-send-email-andrew.goodbody@cambrionix.com>
Date: Tue, 19 Apr 2016 14:56:25 +0100
From: Andrew Goodbody <andrew.goodbody@...brionix.com>
To: <netdev@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, <linux-omap@...r.kernel.org>,
<mugunthanvnm@...com>, <grygorii.strashko@...com>,
<tony@...mide.com>,
"Andrew Goodbody" <andrew.goodbody@...brionix.com>
Subject: [PATCH v2 0/1] drivers: net: cpsw: Fix NULL pointer dereference with two slave PHYs
Resend to add more people on Cc: as requested by Grygrii Strashko.
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.
v1 had a problem that data->slaves was used before it had been filled in
Andrew Goodbody (1):
Prevent NUll pointer dereference with two PHYs on cpsw
drivers/net/ethernet/ti/cpsw.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
--
2.5.0
Powered by blists - more mailing lists