diff options
author | Oliver Neukum <oliver@neukum.org> | 2010-02-27 20:55:26 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-19 07:24:15 -0700 |
commit | d855fe2e9c19edaa47baba0e7f95e17f7a24dba8 (patch) | |
tree | fc6ac6e1c0a74ff70f1fbf67cb6bb85a1453f694 /drivers | |
parent | 922a5eadd5a3aa0b806be0c18694b618d41d0784 (diff) | |
download | kernel_samsung_smdk4412-d855fe2e9c19edaa47baba0e7f95e17f7a24dba8.zip kernel_samsung_smdk4412-d855fe2e9c19edaa47baba0e7f95e17f7a24dba8.tar.gz kernel_samsung_smdk4412-d855fe2e9c19edaa47baba0e7f95e17f7a24dba8.tar.bz2 |
usb: cdc-wdm: Fix race between disconnect and debug messages
dev_dbg() and dev_err() cannot be used to report failures
that may have been caused by a device's removal
Signed-off-by: Oliver Neukum <neukum@b1-systems.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/class/cdc-wdm.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index 940b17a..72e2eb0 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c @@ -435,11 +435,8 @@ retry: spin_lock_irq(&desc->iuspin); if (desc->rerr) { /* read completed, error happened */ - int t = desc->rerr; desc->rerr = 0; spin_unlock_irq(&desc->iuspin); - dev_err(&desc->intf->dev, - "reading had resulted in %d\n", t); rv = -EIO; goto err; } @@ -477,8 +474,6 @@ retry: err: mutex_unlock(&desc->lock); - if (rv < 0 && rv != -EAGAIN) - dev_err(&desc->intf->dev, "wdm_read: exit error\n"); return rv; } |