Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df216f26 authored by Pratham Pratap's avatar Pratham Pratap
Browse files

usb: dwc3: gadget: Fix NULL pointer in dwc3_remove_requests



USB ep's desc field will be marked as NULL if ep is not
enabled. Here in usb_endpoint_xfer_isoc function we are
trying to access desc field for the ep. Since it is
not enabled it leads to NULL pointer dereference. This
happens when any function bind fails. So android_disable
gets called which in turn calls dwc3_gadget_pullup and
eventually dwc3_remove_requests gets called. This
change adds a check before accessing the desc field of
ep.

Change-Id: Ib7cb9418892b3f3e42ec3088b88112abed589fe0
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 22fe5715
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment