Message ID | 20211124123238.471429-3-kgraul@linux.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 9ebb0c4b27a6158303b791b5b91e66d7665ee30e |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net/smc: fixes 2021-11-24 | expand |
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c index b61c802e3bf3..53a617cbbec4 100644 --- a/net/smc/af_smc.c +++ b/net/smc/af_smc.c @@ -2134,8 +2134,10 @@ static int smc_listen(struct socket *sock, int backlog) smc->clcsock->sk->sk_user_data = (void *)((uintptr_t)smc | SK_USER_DATA_NOCOPY); rc = kernel_listen(smc->clcsock, backlog); - if (rc) + if (rc) { + smc->clcsock->sk->sk_data_ready = smc->clcsk_data_ready; goto out; + } sk->sk_max_ack_backlog = backlog; sk->sk_ack_backlog = 0; sk->sk_state = SMC_LISTEN;