diff options
| author | Lu Baolu <[email protected]> | 2015-12-30 04:59:08 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-01-25 05:06:21 +0000 |
| commit | 19454462acb1bdef80542061bdc9b410e4ed1ff6 (patch) | |
| tree | 8020236445dcbfe2f75ffe32df70f54d8067da0c /net/unix/af_unix.c | |
| parent | Linux 4.5-rc1 (diff) | |
| download | kernel-19454462acb1bdef80542061bdc9b410e4ed1ff6.tar.gz kernel-19454462acb1bdef80542061bdc9b410e4ed1ff6.zip | |
usb: cdc-acm: handle unlinked urb in acm read callback
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]>
Cc: [email protected]
Acked-by: Oliver Neukum <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
