diff options
author | Oliver Neukum <[email protected]> | 2021-04-21 09:45:13 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-04-22 10:53:15 +0200 |
commit | a8b3b519618f30a87a304c4e120267ce6f8dc68a (patch) | |
tree | e010935027f6281e272c859e1a2ae11147b0cddd /lib/mpi/mpi-inline.h | |
parent | ca91fd8c7643d93bfc18a6fec1a0d3972a46a18a (diff) |
USB: CDC-ACM: fix poison/unpoison imbalance
suspend() does its poisoning conditionally, resume() does it
unconditionally. On a device with combined interfaces this
will balance, on a device with two interfaces the counter will
go negative and resubmission will fail.
Both actions need to be done conditionally.
Fixes: 6069e3e927c8f ("USB: cdc-acm: untangle a circular dependency between callback and softint")
Signed-off-by: Oliver Neukum <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions