usb_wwan: fix error in marking device busy
authorOliver Neukum <oliver@neukum.org>
Thu, 10 Feb 2011 14:33:10 +0000 (15:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 18:51:11 +0000 (10:51 -0800)
commitc9c4558f7874676e31ea7a74caafcf09ebbc03ed
treebb42c86cc0768f9671b22573704503b68f6e6c62
parent8ab10400a037a516cc846c338f879e5bd62497ce
usb_wwan: fix error in marking device busy

This fixes two errors:
- the device is busy if a message was recieved even if resubmission fails
- the device is not busy if resubmission fails due to -EPERM

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb_wwan.c