aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-rtl-pass.h
diff options
context:
space:
mode:
authorMathias Nyman <[email protected]>2019-07-25 11:54:21 +0300
committerGreg Kroah-Hartman <[email protected]>2019-07-25 11:26:42 +0200
commitd39b5bad8658d6d94cb2d98a44a7e159db4f5030 (patch)
tree01c78843d3a55fd30bd7c7cf7f13c3357dacbbf4 /scripts/gcc-plugins/gcc-generate-rtl-pass.h
parent4849ee6129702dcb05d36f9c7c61b4661fcd751f (diff)
xhci: Fix crash if scatter gather is used with Immediate Data Transfer (IDT).
A second regression was found in the immediate data transfer (IDT) support which was added to 5.2 kernel IDT is used to transfer small amounts of data (up to 8 bytes) in the field normally used for data dma address, thus avoiding dma mapping. If the data was not already dma mapped, then IDT support assumed data was in urb->transfer_buffer, and did not take into accound that even small amounts of data (8 bytes) can be in a scatterlist instead. This caused a NULL pointer dereference when sg_dma_len() was used with non-dma mapped data. Solve this by not using IDT if scatter gather buffer list is used. Fixes: 33e39350ebd2 ("usb: xhci: add Immediate Data Transfer support") Cc: <[email protected]> # v5.2 Reported-by: Maik Stohn <[email protected]> Tested-by: Maik Stohn <[email protected]> CC: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions