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

Skip to content
Commit cf27f874 authored by Shimrit Malichi's avatar Shimrit Malichi Committed by Stephen Boyd
Browse files

usb: gadget: u_bam: fix race condition



On a usb cable connection/disconnection we place in a work queue the
function that is responsible to handle the connection/disconnection for
the RMNET interface.

If we connect the usb cable and disconnect it, we might get to the
condition that the connection function is running, though the usb cable
is disconnected. This may result in a NULL pointer access.

By this provided fix we check if the usb cable is disconnected before
trying to access a parameter that is set to NULL on cable disconnection.

CRs-Fixed: 468198
Change-Id: Id1a50ebc8d7f7567dab7c498a1526ee4e7ce3f7f
Signed-off-by: default avatarShimrit Malichi <smalichi@codeaurora.org>
parent a1704158
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