net/smc: Correct spelling mistake to TCPF_SYN_RECV
authorWen Gu <guwen@linux.alibaba.com>
Thu, 28 Oct 2021 07:13:47 +0000 (15:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 12:04:28 +0000 (13:04 +0100)
There should use TCPF_SYN_RECV instead of TCP_SYN_RECV.

Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c

index c038efc..78b663d 100644 (file)
@@ -1057,7 +1057,7 @@ static void smc_connect_work(struct work_struct *work)
        if (smc->clcsock->sk->sk_err) {
                smc->sk.sk_err = smc->clcsock->sk->sk_err;
        } else if ((1 << smc->clcsock->sk->sk_state) &
-                                       (TCPF_SYN_SENT | TCP_SYN_RECV)) {
+                                       (TCPF_SYN_SENT | TCPF_SYN_RECV)) {
                rc = sk_stream_wait_connect(smc->clcsock->sk, &timeo);
                if ((rc == -EPIPE) &&
                    ((1 << smc->clcsock->sk->sk_state) &