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 c038efc23ce386fa96b7cc7ba177bc63034f1023..78b663dbfa1f91ffe5c9617e4d32d239d8ea6253 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) &