summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorphil.turnbull@oracle.com <phil.turnbull@oracle.com>2016-07-26 15:14:35 -0400
committerBen Hutchings <ben@decadent.org.uk>2016-11-20 01:16:58 +0000
commitcc850b24cb9f78ce937203db973c5b3abb423c30 (patch)
tree3ef2a6f97fc43861c9ebbeba6f559f7e108c6426 /include
parenta60e74461e75a0b0e7d97de08abcf665c4b40125 (diff)
l2tp: Correctly return -EBADF from pppol2tp_getname.
commit 4ac36a4adaf80013a60013d6f829f5863d5d0e05 upstream. If 'tunnel' is NULL we should return -EBADF but the 'end_put_sess' path unconditionally sets 'error' back to zero. Rework the error path so it more closely matches pppol2tp_sendmsg. Fixes: fd558d186df2 ("l2tp: Split pppol2tp patch into separate l2tp and ppp parts") Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions