projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc0191a
)
[AF_RXRPC]: Return the number of bytes buffered in rxrpc_send_data()
author
David Howells
<dhowells@redhat.com>
Tue, 19 Jun 2007 06:30:41 +0000
(23:30 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 19 Jun 2007 06:30:41 +0000
(23:30 -0700)
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>
net/rxrpc/ar-output.c
patch
|
blob
|
blame
|
history
diff --git
a/net/rxrpc/ar-output.c
b/net/rxrpc/ar-output.c
index 591c4422205e4bb9e76d3b7c71ca1d1c13fc8795..cc9102c5b588319e09b9769302bd5704e9bfb8e3 100644
(file)
--- a/
net/rxrpc/ar-output.c
+++ b/
net/rxrpc/ar-output.c
@@
-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;
@@
-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);
@@
-725,7
+728,7
@@
call_aborted:
maybe_error:
if (copied)
-
ret = copied
;
+
goto success
;
goto out;
efault: