Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: cdc-acm: handle unlinked urb in acm read callback
commit 1945446 upstream. 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 <[email protected]> Signed-off-by: Lu Baolu <[email protected]> Acked-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information