diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/rxrpc/ar-output.c | 5 |
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 | ||
713 | success: | ||
714 | ret = copied; | ||
712 | out: | 715 | out: |
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 | ||
726 | maybe_error: | 729 | maybe_error: |
727 | if (copied) | 730 | if (copied) |
728 | ret = copied; | 731 | goto success; |
729 | goto out; | 732 | goto out; |
730 | 733 | ||
731 | efault: | 734 | efault: |