]> git.baikalelectronics.ru Git - kernel.git/commit
net: do not call sock_put() on TIMEWAIT sockets
authorEric Dumazet <edumazet@google.com>
Wed, 2 Oct 2013 04:04:11 +0000 (21:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2013 21:05:54 +0000 (17:05 -0400)
commit5dc045a103e1fe74d350da79d39eb327237e442e
treee2d0a072268d9522e94eaed272544a2732e77ee1
parentbb5857c81142c9b6ee34b14a69406cef2704502a
net: do not call sock_put() on TIMEWAIT sockets

commit 33d41bc0579d ("net: Convert TCP & DCCP hash tables to use RCU /
hlist_nulls") incorrectly used sock_put() on TIMEWAIT sockets.

We should instead use inet_twsk_put()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_hashtables.c
net/ipv6/inet6_hashtables.c