summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-03-25 08:23:32 +0200
committerGitHub <noreply@github.com>2024-03-25 08:23:32 +0200
commit4cd6de9e14601609b0f4eb563a3d28795deb8cf5 (patch)
tree38ce5e12892166f0013339b841913ed24133a289
parent11fad42e6f6021641330337f6a5bd477c1dccd6d (diff)
parentaa4e1f5032f2b273e992bd2ebf3c7e787ede0882 (diff)
Merge pull request #15601 from FRRouting/mergify/bp/dev/10.0/pr-15010
zebra: Fix crash on macvlan link down/up (backport #15010)
-rw-r--r--zebra/zebra_vxlan.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index 64eae38fc9..2ffaefd1d5 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -5163,6 +5163,15 @@ void zebra_vxlan_macvlan_up(struct interface *ifp)
return;
link_ifp = zif->link;
+ if (!link_ifp) {
+ if (IS_ZEBRA_DEBUG_VXLAN)
+ zlog_debug(
+ "macvlan parent link is not found. Parent index %d ifp %s",
+ zif->link_ifindex,
+ ifindex2ifname(zif->link_ifindex,
+ ifp->vrf->vrf_id));
+ return;
+ }
link_zif = link_ifp->info;
assert(link_zif);