Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
include
/
net
/
inet_common.h
diff --git
a/kernel/include/net/inet_common.h
b/kernel/include/net/inet_common.h
index
4a92423
..
109e3ee
100644
(file)
--- 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