USB: auerswald: fix file release handler
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 11 May 2007 06:04:14 +0000 (23:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 May 2007 06:45:49 +0000 (23:45 -0700)
commitbe23edf848b14d1b426c12f2f58e4949c4fbd695
tree798a6f9a2d6e74d7e7d7e2de2e40c0343c17e700
parentfcbd963912acc0c5d51bb27f8654f2a91fcff322
USB: auerswald: fix file release handler

If this down_interruptible() does fail due to signal_pending() then the state
of the driver will get trashed in interesting ways, because userspace cannot
and will not retry the close().

Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/auerswald.c