Oliver Neukum af7099bad4 USB: CDC-ACM: fix poison/unpoison imbalance
commit a8b3b519618f30a87a304c4e120267ce6f8dc68a upstream.

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 <oneukum@suse.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210421074513.4327-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-28 13:19:16 +02:00
..
2021-04-21 12:56:14 +02:00
2021-04-10 13:34:30 +02:00
2020-12-30 11:51:26 +01:00
2021-03-04 10:26:29 +01:00
2021-03-07 12:20:44 +01:00
2021-04-07 14:47:39 +02:00
2021-04-16 11:46:39 +02:00