ehea: fix race condition
authorJan-Bernd Themann <ossthema@de.ibm.com>
Thu, 3 Jul 2008 14:18:51 +0000 (15:18 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 4 Jul 2008 12:10:41 +0000 (08:10 -0400)
commit2f69ae01c83a94af5dc3c20e8135b974687ed004
treefba9563322f4f0932b0222f4b026cb96485dc0c5
parentb0afffe89be619f42ae4215554ed66e67de7bb0e
ehea: fix race condition

When ehea_stop is called the function
cancel_work_sync(&port->reset_task) is used to ensure
that the reset task is not running anymore. We need an
additional flag to ensure that it can not be scheduled
after this call again for a certain time.

Signed-off-by: Jan-Bernd Themann <themann@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/ehea/ehea.h
drivers/net/ehea/ehea_main.c