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

Commit 02923fa8 authored by Pratham Pratap's avatar Pratham Pratap
Browse files

usb: gadget: cdev: Don't use spinlock with sleeping functions



Commit c99a841d ("usb: gadget: cdev: Add spinlock to synchronize
ports->cbits_updated")added spinlock to synchronize ports->cbits_updated
which is calling a sleeping function(put_user) after spinlock is held.

Fix this by protecting just variable, ports->cbits_updated.

Change-Id: I0a52a88344c449c9485f41b871cc97e54b4bf3ca
Signed-off-by: default avatarPratham Pratap <quic_ppratap@quicinc.com>
parent d38d8bb8
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