[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sat, 14 Oct 2017 18:39:29 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: g.nault@...halink.fr
Cc: netdev@...r.kernel.org, jchapman@...alix.com, tparkin@...alix.com
Subject: Re: [PATCH net] l2tp: check ps->sock before running
pppol2tp_session_ioctl()
From: Guillaume Nault <g.nault@...halink.fr>
Date: Fri, 13 Oct 2017 19:22:35 +0200
> When pppol2tp_session_ioctl() is called by pppol2tp_tunnel_ioctl(),
> the session may be unconnected. That is, it was created by
> pppol2tp_session_create() and hasn't been connected with
> pppol2tp_connect(). In this case, ps->sock is NULL, so we need to check
> for this case in order to avoid dereferencing a NULL pointer.
>
> Fixes: 309795f4bec2 ("l2tp: Add netlink control API for L2TP")
> Signed-off-by: Guillaume Nault <g.nault@...halink.fr>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists