From: Arnd Bergmann Date: Wed, 26 Feb 2014 11:01:52 +0000 (+0100) Subject: isdn: pcbit: fix interruptible_sleep_on race X-Git-Tag: v3.15-rc1~113^2~253 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5b3fa1547283b25d5e68ad2563b7e7dd8cb1209;p=pandora-kernel.git isdn: pcbit: fix interruptible_sleep_on race interruptible_sleep_on is racy and going away. In case of pcbit, the driver would run into a timeout if the card is initialized before we start waiting for it. This uses wait_event to fix the race. In order to do this, the state machine handling for the timeout case has to get trivially reorganized so we actually know whether the timeout has occorred or not. Signed-off-by: Arnd Bergmann Cc: Karsten Keil Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- Reading git-diff-tree failed