]> git.karo-electronics.de Git - linux-beck.git/commit
net: fec: improve safety of suspend/resume/transmit timeout paths
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 8 Jul 2014 11:39:57 +0000 (12:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jul 2014 03:02:58 +0000 (20:02 -0700)
commitda1774e5f1974294dcfc2c08363bb103e769d302
treedaf0b6e67d4b07c713a981b7431b9917f3034335
parent2167cefc9e07753d158a56be0c58eb7702aa122b
net: fec: improve safety of suspend/resume/transmit timeout paths

We should hold the rtnl lock while suspending, resuming or processing
the transmit timeout to ensure that nothing will interfere while we
bring up, take down or restart the hardware.  The transmit timeout
could run if we're preempted during suspend.

Acked-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c