]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
l2tp: fix l2tp_eth module loading
authorGuillaume Nault <g.nault@alphalink.fr>
Thu, 28 Sep 2017 13:44:38 +0000 (15:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:07 +0000 (11:56 +0200)
commitd7a268ea8624115cd4b1ddd29fc410965e4b0950
treeaa66e1fe6b69ec61c27bce453d2d9d87284301df
parentcd6d6bd72cc19117c79a229a44094b007b0fd369
l2tp: fix l2tp_eth module loading

[ Upstream commit 9f775ead5e570e7e19015b9e4e2f3dd6e71a5935 ]

The l2tp_eth module crashes if its netlink callbacks are run when the
pernet data aren't initialised.

We should normally register_pernet_device() before the genl callbacks.
However, the pernet data only maintain a list of l2tpeth interfaces,
and this list is never used. So let's just drop pernet handling
instead.

Fixes: d9e31d17ceba ("l2tp: Add L2TP ethernet pseudowire support")
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_eth.c