]> git.hungrycats.org Git - linux/commit
l2tp: Fix sendmsg() return value
authorGuillaume Nault <g.nault@alphalink.fr>
Wed, 12 Jun 2013 14:07:36 +0000 (16:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2013 17:34:33 +0000 (10:34 -0700)
commit60ab7833a93b180b420a18e24e88e3a9528a7038
tree261ea5540ff5fae84530f60f6e331a01da3526c6
parent6e092615d27d7036832c18f1c14b691c6c1cbb1d
l2tp: Fix sendmsg() return value

[ Upstream commit a6f79d0f26704214b5b702bbac525cb72997f984 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/l2tp/l2tp_ppp.c