]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: cdc-wdm: poll must return POLLHUP if device is gone
authorBjørn Mork <bjorn@mork.no>
Wed, 9 May 2012 11:53:21 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:18:19 +0000 (15:18 +0800)
commitd0765ea47c9ab8466b8765ff768251b572670148
treebe81ee4845606be90beeb141684d141772be6a12
parentfccfda602805358246118c8ed991a0cb32160d0f
USB: cdc-wdm: poll must return POLLHUP if device is gone

commit 616b6937e348ef2b4c6ea5fef2cd3c441145efb0 upstream.

Else the poll will be restarted indefinitely in a tight loop,
preventing final device cleanup.

Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c