]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
l2tp: define parameters of l2tp_tunnel_find*() as "const"
authorGuillaume Nault <g.nault@alphalink.fr>
Thu, 21 May 2020 23:39:24 +0000 (00:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 14:41:56 +0000 (16:41 +0200)
commitd4504d1eba9563ca60bf87194a68faee1e6fa11e
treea30846a0e1ecd3aa50437348a27e00244e959119
parenteb61cabde73d8824145bcd7dec729987a50baa27
l2tp: define parameters of l2tp_tunnel_find*() as "const"

commit 2f858b928bf5a8174911aaec76b8b72a9ca0533d upstream.

l2tp_tunnel_find() and l2tp_tunnel_find_nth() don't modify "net".

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h