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

Skip to content
Commit 13b77187 authored by Saket Saurabh's avatar Saket Saurabh
Browse files

USB: u_ether: Fix race between gether_disconnect and rx_submit



Race is happening when both rx_submit() and gether_disconnect()
executes in parallel. When rndis is disabled, in gether_disconnect()
dev port_usb is set to NULL. On other side, rx_sumit() executes in
parallel and dev port_usb is accesed leading to NULL pointer
dereference.
Fix the issue by extending the spin_lock protection for the
dev port_usb in rx_submit().

CRs-Fixed: 658992
Change-Id: Ie788cde9dac56230046503be68ad3ab8a9839eec
Signed-off-by: default avatarSaket Saurabh <ssaurabh@codeaurora.org>
parent 7e02cedd
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