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:
55b92b7
)
l2tp: Fix sendmsg() return value
author
Guillaume Nault
<g.nault@alphalink.fr>
Wed, 12 Jun 2013 14:07:36 +0000
(16:07 +0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 13 Jun 2013 09:39:04 +0000
(
02:39
-0700)
PPPoL2TP sockets should comply with the standard send*() return values
(i.e. return number of bytes sent instead of 0 upon success).
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ppp.c
patch
|
blob
|
blame
|
history
diff --git
a/net/l2tp/l2tp_ppp.c
b/net/l2tp/l2tp_ppp.c
index 681c626068b4fa45fef034f44134d2891edc4157..8dec6876dc508265084cc80314e69d6b9d25aa25 100644
(file)
--- a/
net/l2tp/l2tp_ppp.c
+++ b/
net/l2tp/l2tp_ppp.c
@@
-358,7
+358,7
@@
static int pppol2tp_sendmsg(struct kiocb *iocb, struct socket *sock, struct msgh
sock_put(ps->tunnel_sock);
sock_put(sk);
- return
error
;
+ return
total_len
;
error_put_sess_tun:
sock_put(ps->tunnel_sock);