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

Skip to content
Commit f8cd6323 authored by Dov Levenglick's avatar Dov Levenglick
Browse files

usb: gadget: unconfigure ep during disable



The dwc3-msm function msm_ep_configure is called each
time the USB is connected. In order to allow this to
happen more than once, the corresponding msm_ep_unconfigure
function has to be called during the function disable.
Without the fix, the call to msm_ep_configure returns an error
which leads to the composition switch to fail. In turn, this
causes a call to reset_config which calls gbam_disconnect
during the ongoing process of gbam2bam_connect_work. The
disconnect function nullifies a pointer that the connect function
uses - thereby causing a null pointer dereferencing

Change-Id: I0cf567f7d91cadd490ee7bf88e67bd8ad3e6dfa7
Signed-off-by: default avatarDov Levenglick <dovl@codeaurora.org>
parent 57387ee5
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