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

Skip to content
Commit 3881e137 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: gadget: f_gsi: Check USB connection status in ioctl



In case of mdm subsystem re-start when usb is in disconnect
state, qti issues QTI_CTRL_MODEM_OFFLINE ioctl. This is
resulting into config NULL pointer dereference to access
usb composite device struct. Fix this issue by adding a
check for cable connection status before handling any ioctl.
Also move access of cdev pointer after usb connection status
check in gsi_ctrl_send_notification().

Change-Id: I8e62b69cfa4da0300d02d4bf6ddaf445f4577ba5
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 597b0885
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