projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sock: struct proto hash function may error
[cascardo/linux.git]
/
net
/
ipv4
/
inet_hashtables.c
diff --git
a/net/ipv4/inet_hashtables.c
b/net/ipv4/inet_hashtables.c
index
ccc5980
..
b6023b7
100644
(file)
--- a/
net/ipv4/inet_hashtables.c
+++ b/
net/ipv4/inet_hashtables.c
@@
-468,13
+468,15
@@
void __inet_hash(struct sock *sk, struct sock *osk)
}
EXPORT_SYMBOL(__inet_hash);
-
void
inet_hash(struct sock *sk)
+
int
inet_hash(struct sock *sk)
{
if (sk->sk_state != TCP_CLOSE) {
local_bh_disable();
__inet_hash(sk, NULL);
local_bh_enable();
}
+
+ return 0;
}
EXPORT_SYMBOL_GPL(inet_hash);