]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/inet_hashtables.c
sock: struct proto hash function may error
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / inet_hashtables.c
index ccc5980797fcdb9ed3a1003db47e4e8cb7180279..b6023b7baae0126cf4d4cde15ba1a37974fe281b 100644 (file)
@@ -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);