.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | | - * This program is free software; you can redistribute it and/or modify |
---|
3 | | - * it under the terms of the GNU General Public License as published by |
---|
4 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
5 | | - * (at your option) any later version. |
---|
6 | 3 | * |
---|
7 | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
---|
8 | 5 | * Copyright (C) 2002 Ralf Baechle DO1GRB (ralf@gnu.org) |
---|
.. | .. |
---|
124 | 121 | is accepted() it isn't 'dead' so doesn't get removed. */ |
---|
125 | 122 | if (sock_flag(sk, SOCK_DESTROY) || |
---|
126 | 123 | (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) { |
---|
| 124 | + sock_hold(sk); |
---|
127 | 125 | bh_unlock_sock(sk); |
---|
128 | 126 | nr_destroy_socket(sk); |
---|
129 | 127 | goto out; |
---|