Skip to content
Commit e888fa76 authored by Sai Krishna Juturi's avatar Sai Krishna Juturi
Browse files

udc: core: Fix use after free issue



In usb_ep_free_request request is freed in gadget driver
and passed to trace_event_usb_ep_free_request, which can
result in invalid memory access.
Fix this by first calling trace_event_usb_ep_free_request
and then free the request

Signed-off-by: default avatarSai Krishna Juturi <jsaikrishna@codeaurora.org>
Change-Id: I3f6e4f02159b0789332818c5f181b1d1586edb17
parent 373476f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment