From: Phil Turnbull <phil.turnb...@oracle.com> Date: Tue, 26 Jul 2016 15:14:35 -0400
> 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.turnb...@oracle.com> Applied.