Skip to content

Commit

Permalink
[AF_RXRPC]: Return the number of bytes buffered in rxrpc_send_data()
Browse files Browse the repository at this point in the history
Return the number of bytes buffered in rxrpc_send_data().

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Howells authored and David S. Miller committed Jun 19, 2007
1 parent cc0191a commit 19e6454
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/rxrpc/ar-output.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ static int rxrpc_send_data(struct kiocb *iocb,
goto efault;
sp->remain -= copy;
skb->mark += copy;
copied += copy;

len -= copy;
segment -= copy;
Expand Down Expand Up @@ -709,6 +710,8 @@ static int rxrpc_send_data(struct kiocb *iocb,

} while (segment > 0);

success:
ret = copied;
out:
call->tx_pending = skb;
_leave(" = %d", ret);
Expand All @@ -725,7 +728,7 @@ static int rxrpc_send_data(struct kiocb *iocb,

maybe_error:
if (copied)
ret = copied;
goto success;
goto out;

efault:
Expand Down

0 comments on commit 19e6454

Please sign in to comment.