diff options
| author | Florian Fainelli <[email protected]> | 2017-04-25 17:56:11 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-05-17 12:20:53 +0200 |
| commit | 4568136620c6482bcd4a6b0cd6ae8e5679615d7e (patch) | |
| tree | 0b3033347fe1709138b327b9032b704ee400c53c /tools/perf/scripts/python | |
| parent | 64b9533ec14bdfb8e77bbe1ae4f4842043d22aeb (diff) | |
usb: core: Check URB setup_packet and transfer_buffer sanity
Update usb_hcd_map_urb_for_dma() to check for an URB's setup_packet and
transfer_buffer sanity. We first check that urb->setup_packet is neither
coming from vmalloc space nor is an on stack buffer, and if that's the
case, produce a warning and return an error. For urb->transfer_buffer
there is an existing is_vmalloc_addr() check so we just supplement that
with an object_is_on_stack() check, produce a warning if that is the case
and also return an error.
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions