Commit d580a76d authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

USB: gadget: diag: Take spin lock while freeing requests



Freeing USB requests and retiring pending requests can happen in
parallel.  Take spin lock while freeing requests to prevent list
corruption.  Ensure all stale requests are freed before allocating
new requests upon next cable connection.

CRs-Fixed: 436769
(cherry picked from commit eb1ed0ec838f616677918974fa667ee0752e5bf3)

Change-Id: I162bfd72da7a205e80caf9ae53db12f0eb335388
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 764db1a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment