[PATCH] prism54: fix potential race in reset scheduling
authorDmitry Torokhov <dtor@insightbb.com>
Sun, 8 Oct 2006 04:38:14 +0000 (00:38 -0400)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 05:11:57 +0000 (00:11 -0500)
commitd18e0c4a5434f02586b5fdcbcc72f1fe61ab49e6
tree813592f56a6f090c7732aa7da675276b722da6ab
parent5c877fe58c5df19646204b144b978b99c2ef074f
[PATCH] prism54: fix potential race in reset scheduling

NET: prism54 - fix potential race in reset scheduling

There appears to be a race in reset scheduling logic - thread
responsible for reseting the interface should clear "reset
pending" flag before restarting the queue, otherwise timeout
handler might not schedule another reset even if it is needed.

This race is mostly theoretical as far as I can see but a race
nonetheless.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/prism54/islpci_eth.c