• A
    isdn: pcbit: fix interruptible_sleep_on race · e5b3fa15
    Arnd Bergmann 提交于
    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: NArnd Bergmann <arnd@arndb.de>
    Cc: Karsten Keil <isdn@linux-pingi.de>
    Cc: netdev@vger.kernel.org
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    e5b3fa15
drv.c 21.8 KB