Skip to content

Commit 97fe809

Browse files
oneukumgregkh
authored andcommitted
CDC-ACM: heed quirk also in error handling
If buffers are iterated over in the error case, the lower limits for quirky devices must be heeded. Signed-off-by: Oliver Neukum <oneukum@suse.com> Reported-by: Jean Rene Dawin <jdawin@math.uni-bielefeld.de> Fixes: a4e7279 ("cdc-acm: introduce a cool down") Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20200526124420.22160-1-oneukum@suse.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d19c64b commit 97fe809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/class/cdc-acm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ static void acm_softint(struct work_struct *work)
584584
}
585585

586586
if (test_and_clear_bit(ACM_ERROR_DELAY, &acm->flags)) {
587-
for (i = 0; i < ACM_NR; i++)
587+
for (i = 0; i < acm->rx_buflimit; i++)
588588
if (test_and_clear_bit(i, &acm->urbs_in_error_delay))
589589
acm_submit_read_urb(acm, i, GFP_NOIO);
590590
}

0 commit comments

Comments
 (0)