Skip to content
Snippets Groups Projects
Commit 77a57c44 authored by Liangliang Lu's avatar Liangliang Lu Committed by Steve Pfetsch
Browse files

net: usb: rmnet_usb_ctrl:Make sure list_head operate atomically


Get and delete operation on variables "list_elem" are not atomic.
Multiple threads may get the same "list_elem", may lead to race
conditions.

Add mutex in rmnet_ctl_open to resolve current potential race condition
between test_bit and set_bit.

Bug: 64441352
Change-Id: I00c4e2fd4854ee17a13a0757da98c46a78eee4cb
Signed-off-by: default avatarLiangliang Lu <luliang@codeaurora.org>
parent 93f53a7c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment