From: Simon Guinot Date: Mon, 13 Sep 2010 22:12:01 +0000 (+0000) Subject: phylib: fix PAL state machine restart on resume X-Git-Tag: v2.6.36-rc5~12^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fddd91016d16277a32727ad272cf2edd3d309c90;p=pandora-kernel.git 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: Simon Guinot Signed-off-by: David S. Miller --- Reading git-diff-tree failed