Commit f5227cd9 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller

net/smc: remove duplicate unhash

unhash is already called in sock_put_work. Remove the second call.
Signed-off-by: default avatarUrsula Braun <ubraun@linux.vnet.ibm.com>
Reviewed-by: default avatarThomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a98bf8c0
...@@ -147,7 +147,6 @@ static int smc_release(struct socket *sock) ...@@ -147,7 +147,6 @@ static int smc_release(struct socket *sock)
schedule_delayed_work(&smc->sock_put_work, schedule_delayed_work(&smc->sock_put_work,
SMC_CLOSE_SOCK_PUT_DELAY); SMC_CLOSE_SOCK_PUT_DELAY);
} }
sk->sk_prot->unhash(sk);
release_sock(sk); release_sock(sk);
sock_put(sk); sock_put(sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment