Skip to content

Commit

Permalink
net/smc: remove duplicate unhash
Browse files Browse the repository at this point in the history
unhash is already called in sock_put_work. Remove the second call.

Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Reviewed-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ursula Braun authored and davem330 committed Apr 12, 2017
1 parent a98bf8c commit f5227cd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/smc/af_smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ static int smc_release(struct socket *sock)
schedule_delayed_work(&smc->sock_put_work,
SMC_CLOSE_SOCK_PUT_DELAY);
}
sk->sk_prot->unhash(sk);
release_sock(sk);

sock_put(sk);
Expand Down

0 comments on commit f5227cd

Please sign in to comment.