Files
linux/drivers
Mathias Nyman ee52a78cfa xhci: Fix false warning message about wrong bounce buffer write length
commit c03101ff4f upstream.

The check printing out the "WARN Wrong bounce buffer write length:"
uses incorrect values when comparing bytes written from scatterlist
to bounce buffer. Actual copied lengths are fine.

The used seg->bounce_len will be set to equal new_buf_len a few lines later
in the code, but is incorrect when doing the comparison.

The patch which added this false warning was backported to 4.8+ kernels
so this should be backported as far as well.

Cc: <stable@vger.kernel.org> # v4.8+
Fixes: 597c56e372 ("xhci: update bounce buffer with correct sg num")
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/1570190373-30684-2-git-send-email-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 14:48:30 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-15 14:31:19 +09:00
2023-05-15 14:35:08 +09:00
2023-05-15 10:39:04 +09:00
2023-05-15 12:46:28 +09:00
2018-05-25 17:06:35 +02:00
2023-05-15 14:41:08 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 09:51:46 +09:00
2023-05-15 08:28:33 +09:00
2023-05-15 14:29:17 +09:00
2023-05-15 13:00:07 +09:00
2023-05-15 14:47:51 +09:00