aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPrashanth K <[email protected]>2024-02-29 16:14:38 +0200
committerGreg Kroah-Hartman <[email protected]>2024-03-02 20:25:28 +0100
commitbe95cc6d71dfd0cba66e3621c65413321b398052 (patch)
treec1ea73937c0d620eb1f1df7ac4bf5a64527c0829 /tools/perf/scripts/python
parentfb18e5bb96603cc79d97f03e4c05f3992cf28624 (diff)
usb: xhci: Add error handling in xhci_map_urb_for_dma
Currently xhci_map_urb_for_dma() creates a temporary buffer and copies the SG list to the new linear buffer. But if the kzalloc_node() fails, then the following sg_pcopy_to_buffer() can lead to crash since it tries to memcpy to NULL pointer. So return -ENOMEM if kzalloc returns null pointer. Cc: [email protected] # 5.11 Fixes: 2017a1e58472 ("usb: xhci: Use temporary buffer to consolidate SG") Signed-off-by: Prashanth K <[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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions