diff --git a/net/smc/smc_tx.c b/net/smc/smc_tx.c index 28361aef998256a327a73f41fd0218492b205646..f1f621675db01b56288503a2111e9805f461eb29 100644 --- a/net/smc/smc_tx.c +++ b/net/smc/smc_tx.c @@ -163,12 +163,11 @@ int smc_tx_sendmsg(struct smc_sock *smc, struct msghdr *msg, size_t len) conn->local_tx_ctrl.prod_flags.urg_data_pending = 1; if (!atomic_read(&conn->sndbuf_space) || conn->urg_tx_pend) { + if (send_done) + return send_done; rc = smc_tx_wait(smc, msg->msg_flags); - if (rc) { - if (send_done) - return send_done; + if (rc) goto out_err; - } continue; }