Skip to content
Commit 2d7ace58 authored by Liangliang Lu's avatar Liangliang Lu Committed by Gerrit - the friendly Code Review server
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.

Change-Id: I00c4e2fd4854ee17a13a0757da98c46a78eee4cb
Signed-off-by: default avatarLiangliang Lu <luliang@codeaurora.org>
parent b9cb1846
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