]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: vxlan: check ipv6_mod_enabled() on neigh_reduce()
authorFernando Fernandez Mancera <fmancera@suse.de>
Mon, 30 Mar 2026 12:10:33 +0000 (14:10 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 Apr 2026 03:10:48 +0000 (20:10 -0700)
commit58e416e283284c15b8daf0b2b425f43242f62b0a
tree1935f1e11f15fcd9b6a95b76b9e7a7a45299fc93
parentd7709812e13d06132ddae3d21540472ea5cb11c5
net: vxlan: check ipv6_mod_enabled() on neigh_reduce()

IPv6 must be enabled or otherwise neigh_reduce() might cause a kernel
panic. This was prevented by a check on in6_dev. Use ipv6_mod_enabled()
instead as it is cleaner and also consistent with the code at
route_shortcircuit().

Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260330121033.4479-1-fmancera@suse.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_core.c