From: Russell King Date: Tue, 8 Jul 2014 11:40:28 +0000 (+0100) Subject: net: fec: quiesce packet processing before stopping device in fec_set_features() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~202^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a7ba4381af4defa7834c73c8a015532c06f4e8e;p=pandora-kernel.git net: fec: quiesce packet processing before stopping device in fec_set_features() fec_set_features() calls fec_stop() to stop the transmit ring while the transmit queue is still active. This can lead to the transmit ring being restarted by an intervening packet queued for transmission, or by the tx quirk timer expiring. Fix this by disabling NAPI (which ensures that the NAPI handlers are not running), and then take the transmit lock while we stop and restart the adapter (which prevents new packets being queued). Acked-by: Fugang Duan Signed-off-by: Russell King Signed-off-by: David S. Miller --- Reading git-diff-tree failed