]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv6/inet6_hashtables.c
net: do not call sock_put() on TIMEWAIT sockets
[karo-tx-linux.git] / net / ipv6 / inet6_hashtables.c
index 32b4a1675d826d8ce50e36dbf314456075e1660e..066640e0ba8e3b5f4759cabcfc5bbe125ef2df20 100644 (file)
@@ -116,7 +116,7 @@ begintw:
                        }
                        if (unlikely(!INET6_TW_MATCH(sk, net, saddr, daddr,
                                                     ports, dif))) {
-                               sock_put(sk);
+                               inet_twsk_put(inet_twsk(sk));
                                goto begintw;
                        }
                        goto out;