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

Commit 08201b1a authored by Rupesh Tatiya's avatar Rupesh Tatiya Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: remove unnecessary check on BT_CLOSED socks during accept



BT_CLOSED sockets are unlinked from teardown callback. Trying to unlink
such sockets from bt_accept_dequeue may lead to NULL dereference as
teardown callback does not hold lock for parent sock.

bt_accept_unlink may be called from two threads, resulting in incorrect
socket ref count. Return if parent is NULL.

Change-Id: I957f0396079888549e082c34401322a6a8a80625
Signed-off-by: default avatarRupesh Tatiya <rtatiya@codeaurora.org>
parent a69c694d
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