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:Osvaldo Banuelos <osvaldob@codeaurora.org>
Loading
Please register or sign in to comment