net/smc: remove duplicate unhash
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Mon, 10 Apr 2017 12:58:03 +0000 (14:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Apr 2017 03:01:14 +0000 (23:01 -0400)
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>
net/smc/af_smc.c

index 3b7eda6c27de3521c51cff9364141d62b2baf085..491a8b2b8b89107f016b72958b577cee5acd08ba 100644 (file)
@@ -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);