From: Marcin Slusarz Date: Fri, 13 Mar 2009 22:41:19 +0000 (-0700) Subject: phylib: convert state_queue work to delayed_work X-Git-Tag: v2.6.30-rc1~662^2~239 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a390d1f379cf821248b735f43d2e1147ebb8241d;p=pandora-kernel.git phylib: convert state_queue work to delayed_work It closes a race in phy_stop_machine when reprogramming of phy_timer (from phy_state_machine) happens between del_timer_sync and cancel_work_sync. Without this change it could lead to crash if phy_device would be freed after phy_stop_machine (timer would fire and schedule freed work). Signed-off-by: Marcin Slusarz Acked-by: Jean Delvare Signed-off-by: David S. Miller --- Reading git-diff-tree failed