From 3b63732a429aae946ce380ae6f57979bde731e71 Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Tue, 24 Nov 2020 12:22:49 -0800 Subject: [PATCH] zebra: prevent crash in evpn if cleanup zebra crash is seen while cleaning up evpn interface during shutdown event. evpn interface clean up is called from vrf_delete callback (gdb) frame 4 (is_up=false, br_zif=0x0, vlan_zif=0x557f31fb36f0) at zebra/zebra_evpn_mh.c:614 614 zebra/zebra_evpn_mh.c: No such file or directory. (gdb) p tmp_br_zif $1 = (struct zebra_if *) 0x0 (gdb) p vlan_zif->link $2 = (struct interface *) 0x557f31fb2d40 (gdb) p vlan_zif->link->info $3 = (void *) 0x0 (gdb) p zebra_if->ifp->name No symbol "zebra_if" in current context. (gdb) p vlan_zif->ifp->name $4 = "peerlink-3.4094\000\000\000\000" Ticket:CM-32435 Reviewed By:CCR-10957 Testing Done: Signed-off-by: Chirag Shah --- zebra/zebra_evpn_mh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_evpn_mh.c b/zebra/zebra_evpn_mh.c index f010ab7306..0534e130b1 100644 --- a/zebra/zebra_evpn_mh.c +++ b/zebra/zebra_evpn_mh.c @@ -609,7 +609,7 @@ void zebra_evpn_acc_bd_svi_set(struct zebra_if *vlan_zif, struct zebra_if *tmp_br_zif = br_zif; if (!tmp_br_zif) { - if (!vlan_zif->link) + if (!vlan_zif->link || !vlan_zif->link->info) return; tmp_br_zif = vlan_zif->link->info; -- 2.39.5