aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/rxrpc/ar-output.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/rxrpc/ar-output.c b/net/rxrpc/ar-output.c
index 591c4422205e..cc9102c5b588 100644
--- a/net/rxrpc/ar-output.c
+++ b/net/rxrpc/ar-output.c
@@ -640,6 +640,7 @@ static int rxrpc_send_data(struct kiocb *iocb,
640 goto efault; 640 goto efault;
641 sp->remain -= copy; 641 sp->remain -= copy;
642 skb->mark += copy; 642 skb->mark += copy;
643 copied += copy;
643 644
644 len -= copy; 645 len -= copy;
645 segment -= copy; 646 segment -= copy;
@@ -709,6 +710,8 @@ static int rxrpc_send_data(struct kiocb *iocb,
709 710
710 } while (segment > 0); 711 } while (segment > 0);
711 712
713success:
714 ret = copied;
712out: 715out:
713 call->tx_pending = skb; 716 call->tx_pending = skb;
714 _leave(" = %d", ret); 717 _leave(" = %d", ret);
@@ -725,7 +728,7 @@ call_aborted:
725 728
726maybe_error: 729maybe_error:
727 if (copied) 730 if (copied)
728 ret = copied; 731 goto success;
729 goto out; 732 goto out;
730 733
731efault: 734efault: