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

Commit 9bb97b02 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: gadget: Mark notify_modem as NULL on gbridge_disconnect



On some targets, f_serial switches transport path from
char_bridge to TTY in DUN+SoftAP scenario. As a part of that,
we call gbridge_disconnect but notify_modem callback is still
marked as gbridge_notify_modem. Then on getting a SETUP req
from host PC, gbridge_notify_modem is called which can lead
to NULL pointer dereference because port_usb is NULL.

Fix this by marking notify_modem callback as NULL on
gbridge_disconnect.

Change-Id: I4470030cde6f38b905f7a88e16ed9f261a8954d6
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 6f6c6e07
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