diff options
| author | Andrew Lunn <[email protected]> | 2016-03-11 23:01:37 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-03-14 19:43:10 +0000 |
| commit | b71be352f76ac3c0559feec2fd960ab9c31404c9 (patch) | |
| tree | 4f49a80ac245645735c74989efe5d233a8697968 /net/dsa/dsa.c | |
| parent | dsa: Rename mv88e6123_61_65 to mv88e6123 to be consistent (diff) | |
| download | kernel-b71be352f76ac3c0559feec2fd960ab9c31404c9.tar.gz kernel-b71be352f76ac3c0559feec2fd960ab9c31404c9.zip | |
dsa: slave: Don't reference NULL pointer during phy_disconnect
When the phy is disconnected, the parent pointer to the netdev it was
attached to is set to NULL. The code then tries to suspend the phy,
but dsa_slave_fixed_link_update needs the parent pointer to determine
which switch the phy is connected to. So it dereferenced a NULL
pointer. Check for this condition.
Signed-off-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions
