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

Commit e45656bf authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: gadget: f_gsi: Fix NULL ptr dereference



When usb composition switch happens upon cable disconnect and
function bind fails, function's config pointer is set to NULL.
This is resulting in to NULL ptr dereference when config is
accessed from APIs which are called asynchronously and out
side of the usb core driver(i.e. dwc3) context. Fix the
issue by directly accessing gadget pointer from gsi driver
context in those APIs.

Change-Id: I1006881ae1838e8ddc8fa5e9ef501f4c658b54e7
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 74efdfc1
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