Skip to content
Commit fddd9101 authored by Simon Guinot's avatar Simon Guinot Committed by David S. Miller
Browse files

phylib: fix PAL state machine restart on resume



On resume, before starting the PAL state machine, check if the
adjust_link() method is well supplied. If not, this would lead to a
NULL pointer dereference in the phy_state_machine() function.

This scenario can happen if the Ethernet driver call manually the PHY
functions instead of using the PAL state machine. The mv643xx_eth driver
is a such example.

Signed-off-by: default avatarSimon Guinot <sguinot@lacie.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ef885afb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment