Skip to content

Commit

Permalink
Merge pull request #15599 from FRRouting/mergify/bp/stable/9.1/pr-15010
Browse files Browse the repository at this point in the history
zebra: Fix crash on macvlan link down/up (backport #15010)
  • Loading branch information
mjstapp authored Mar 22, 2024
2 parents 2b259ac + d015570 commit c2736f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zebra/zebra_vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -5116,6 +5116,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);

Expand Down

0 comments on commit c2736f5

Please sign in to comment.