diff options
Diffstat (limited to 'kernel/include/net/inet_common.h')
-rw-r--r-- | kernel/include/net/inet_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/include/net/inet_common.h b/kernel/include/net/inet_common.h index 4a92423ee..109e3ee91 100644 --- a/kernel/include/net/inet_common.h +++ b/kernel/include/net/inet_common.h @@ -41,7 +41,8 @@ int inet_recv_error(struct sock *sk, struct msghdr *msg, int len, static inline void inet_ctl_sock_destroy(struct sock *sk) { - sk_release_kernel(sk); + if (sk) + sock_release(sk->sk_socket); } #endif |