Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298988
| From | Oliver Neukum <oneukum@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/1] usb: cdc-acm: handle unlinked urb in acm read callback |
| Date | 2015-12-29 14:30 +0100 |
| Message-ID | <qL2vF-13G-15@gated-at.bofh.it> (permalink) |
| References | <qKVkt-4Ar-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2015-12-29 at 13:46 +0800, Lu Baolu wrote: > In current acm driver, the bulk-in callback function ignores the > URBs unlinked in usb core. > > This causes unexpected data loss in some cases. For example, > runtime suspend entry will unlinked all urbs and set urb->status > to -ENOENT even those urbs might have data not processed yet. > Hence, data loss occurs. > > This patch lets bulk-in callback function handle unlinked urbs > to avoid data loss. > > Signed-off-by: Tang Jian Qiang <jianqiang.tang@intel.com> > Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> > Cc: stable@vger.kernel.org Acked-by: Oliver Neukum <oneukum@suse.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/1] usb: cdc-acm: handle unlinked urb in acm read callback Lu Baolu <baolu.lu@linux.intel.com> - 2015-12-29 06:50 +0100 Re: [PATCH 1/1] usb: cdc-acm: handle unlinked urb in acm read callback Oliver Neukum <oneukum@suse.com> - 2015-12-29 14:30 +0100
csiph-web