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

Skip to content
Commit 3cdaa366 authored by Saket Saurabh's avatar Saket Saurabh Committed by Gerrit - the friendly Code Review server
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().

Change-Id: Ie788cde9dac56230046503be68ad3ab8a9839eec
Signed-off-by: default avatarSaket Saurabh <ssaurabh@codeaurora.org>
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent fdafb970
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment