Commit af7099b
USB: CDC-ACM: fix poison/unpoison imbalance
commit a8b3b51 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: 6069e3e ("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>1 parent d7fad2c commit af7099b
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1650 | 1650 | | |
1651 | 1651 | | |
1652 | 1652 | | |
1653 | | - | |
1654 | 1653 | | |
1655 | 1654 | | |
1656 | 1655 | | |
1657 | 1656 | | |
1658 | 1657 | | |
| 1658 | + | |
| 1659 | + | |
1659 | 1660 | | |
1660 | 1661 | | |
1661 | 1662 | | |
| |||
0 commit comments