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

Commit 634d9594 authored by Manu Gautam's avatar Manu Gautam Committed by Jack Pham
Browse files

usb: gadget: f_mbim: Fix cpkt_resp_q list corruption on disconnect



mbim_write drops lock before queuing the request to controller.
If USB gets disconnected or composition switch happens before
lock is acquired again then ep_queue fails and driver tries to
delete cpkt_list which is already deleted and freed, causing
corruption. Add dev->online check after acquiring the spin_lock
to check USB connection state.

CRs-fixed: 849289
Change-Id: I1de570e45b3ceff3e3af61e4a78682ef8dac77ad
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 6b4066e4
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