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

Skip to content
Commit 0cc9c414 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Mayank Rana
Browse files

dwc3-msm: Add check before calling stop host in restart callback



Display driver calls usb_pd_release_ss_lanes() callback to use
SS lines for higher bandwidth use cases. This results in USB PD
driver notify dwc3_msm driver to stop host mode and restart it
in highspeed mode. If DP adaptor is disconnected while
usb_pd_release_ss_lanes() in progress, then there is a chance
that stop host mode gets called again after disconnect handling
and results in Use after free scenario. Hence fix it by checking
whether host mode is active before calling stop host mode.

Change-Id: I2337f451b2f74ebb5178d40078ef6b2166e8f64c
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 4e80278d
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