Re: [PATCH 13/16] isdn: hisax/elsa: fix sleep_on race in elsa FSM

From: David Miller
Date: Wed Feb 26 2014 - 16:08:54 EST


From: Arnd Bergmann <arnd@xxxxxxxx>
Date: Wed, 26 Feb 2014 12:01:53 +0100

> The state machine code in the elsa driver uses interruptible_sleep_on
> to wait for state changes, which is racy. A closer look at the possible
> states reveals that it is always used to wait for getting back into
> ARCOFI_NOP, so we can use wait_event_interruptible instead.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/