Skip to content
Commit e7489d8d authored by Daniel Nejezchleb's avatar Daniel Nejezchleb Committed by Anas Nashif
Browse files

net: tcp: Fix possible deadlock in tcp_conn_unref()



Unlock tcp_lock when calling the recv_cb. In case when
a connection is being closed from both the tcp stack
and the application, a race condition can happen resulting
in locking each other out on tcp_lock and socket lock.

Signed-off-by: default avatarDaniel Nejezchleb <dnejezchleb@hwg.cz>
parent 9397dafa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment