linux_dsm_epyc7002/drivers/net/ethernet/renesas
Ben Hutchings 4f9dce230b sh_eth: Fix ethtool operation crash when net device is down
The driver connects and disconnects the PHY device whenever the
net device is brought up and down.  The ethtool get_settings,
set_settings and nway_reset operations will dereference a null
or dangling pointer if called while it is down.

I think it would be preferable to keep the PHY connected, but there
may be good reasons not to.

As an immediate fix for this bug:
- Set the phydev pointer to NULL after disconnecting the PHY
- Change those three operations to return -ENODEV while the PHY is
  not connected

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-01-19 15:37:40 -05:00
..
Kconfig net: sh_eth: fix driver dependencies 2014-09-02 13:23:25 -07:00
Makefile sh_eth: Move the Renesas SuperH driver 2011-08-12 23:47:36 -07:00
sh_eth.c sh_eth: Fix ethtool operation crash when net device is down 2015-01-19 15:37:40 -05:00
sh_eth.h sh_eth: Fix access to TRSCER register 2015-01-08 20:06:54 -08:00