diff options
author | phil.turnbull@oracle.com <phil.turnbull@oracle.com> | 2016-07-26 21:14:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-27 00:19:46 +0200 |
commit | 4ac36a4adaf80013a60013d6f829f5863d5d0e05 (patch) | |
tree | c46aae34abc1e0b5184dd020d168e22facf56015 /Documentation/kernel-docs.txt | |
parent | net/mlx5_core/health: Remove deprecated create_singlethread_workqueue (diff) | |
download | linux-4ac36a4adaf80013a60013d6f829f5863d5d0e05.tar.xz linux-4ac36a4adaf80013a60013d6f829f5863d5d0e05.zip |
l2tp: Correctly return -EBADF from pppol2tp_getname.
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>
Diffstat (limited to 'Documentation/kernel-docs.txt')
0 files changed, 0 insertions, 0 deletions