diff options
author | Eric Dumazet <edumazet@google.com> | 2014-12-09 20:56:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-10 05:38:44 +0300 |
commit | 0f85feae6b710ced3abad5b2b47d31dfcb956b62 (patch) | |
tree | 17d1fadb2483724a83a814c33270cc94389890dc /net/ipv6/udplite.c | |
parent | f15650b7f94879667f253bc32de7431c1baf2d6e (diff) | |
download | linux-0f85feae6b710ced3abad5b2b47d31dfcb956b62.tar.xz |
tcp: fix more NULL deref after prequeue changes
When I cooked commit c3658e8d0f1 ("tcp: fix possible NULL dereference in
tcp_vX_send_reset()") I missed other spots we could deref a NULL
skb_dst(skb)
Again, if a socket is provided, we do not need skb_dst() to get a
pointer to network namespace : sock_net(sk) is good enough.
Reported-by: Dann Frazier <dann.frazier@canonical.com>
Bisected-by: Dann Frazier <dann.frazier@canonical.com>
Tested-by: Dann Frazier <dann.frazier@canonical.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: ca777eff51f7 ("tcp: remove dst refcount false sharing for prequeue mode")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udplite.c')
0 files changed, 0 insertions, 0 deletions