USB: fix usb serial pm counter decrement for disconnected interfaces
commit62ad296b6ca78bd123864c138814c0a597873693
authorOliver Neukum <oliver@neukum.org>
Wed, 25 Jun 2008 11:32:49 +0000 (25 13:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Jul 2008 22:16:36 +0000 (21 15:16 -0700)
tree7552b0330b2b4b39a92b84394346175d56fdd858
parent17d80d562fd78a035e994afde88f354973e76236
USB: fix usb serial pm counter decrement for disconnected interfaces

usb serial decrements the pm counter even if an interface has been
disconnected. If it was a logical disconnect the interface may belong
already to another driver. This patch introduces a check for disconnected
interfaces.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: Stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c