hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/net/netrom/nr_timer.c
....@@ -1,8 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
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.
63 *
74 * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk)
85 * Copyright (C) 2002 Ralf Baechle DO1GRB (ralf@gnu.org)
....@@ -124,6 +121,7 @@
124121 is accepted() it isn't 'dead' so doesn't get removed. */
125122 if (sock_flag(sk, SOCK_DESTROY) ||
126123 (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
124
+ sock_hold(sk);
127125 bh_unlock_sock(sk);
128126 nr_destroy_socket(sk);
129127 goto out;