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

Skip to content
Commit aaa966bb authored by Osvaldo Banuelos's avatar Osvaldo Banuelos
Browse files

Revert "tcp: call sock_orphan() before freeing socket in tcp_nuke_addr"



This reverts commit 3d78ff9d.
Although the standard is to detach sockets from process contexts prior
to freeing them, under some conditions doing this in tcp_nuke_addr()
will cause a null socket dereference in sk_wait_data(). To avoid this
scenario, it may be necessary to purge the sk_receive queue and place
additional checks to ensure a socket is orphaned only when it will be
freed.

Change-Id: I880ea9e2cd259eebbc40a81a32b96b4af8c36f95
Signed-off-by: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent cadcc68d
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