aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/smc/smc_tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/smc/smc_tx.c b/net/smc/smc_tx.c
index 2e50fddf8ce9..fea6482233a6 100644
--- a/net/smc/smc_tx.c
+++ b/net/smc/smc_tx.c
@@ -86,7 +86,7 @@ static int smc_tx_wait_memory(struct smc_sock *smc, int flags)
86 rc = -EPIPE; 86 rc = -EPIPE;
87 break; 87 break;
88 } 88 }
89 if (conn->local_rx_ctrl.conn_state_flags.peer_conn_abort) { 89 if (smc_cdc_rxed_any_close(conn)) {
90 rc = -ECONNRESET; 90 rc = -ECONNRESET;
91 break; 91 break;
92 } 92 }
@@ -107,7 +107,7 @@ static int smc_tx_wait_memory(struct smc_sock *smc, int flags)
107 sk_wait_event(sk, &timeo, 107 sk_wait_event(sk, &timeo,
108 sk->sk_err || 108 sk->sk_err ||
109 (sk->sk_shutdown & SEND_SHUTDOWN) || 109 (sk->sk_shutdown & SEND_SHUTDOWN) ||
110 smc_cdc_rxed_any_close_or_senddone(conn) || 110 smc_cdc_rxed_any_close(conn) ||
111 atomic_read(&conn->sndbuf_space), 111 atomic_read(&conn->sndbuf_space),
112 &wait); 112 &wait);
113 } 113 }