- Start fcoemon in foreground from service file (bnc#873269) * Add 0030-fcoe.service-Add-foreground-to-prevent-fcoemon-to-be.patch - Fixup IEEE state machine * Add 0031-fcoemon-Fix-IEEE-state-machine.patch - Fix fipvlan crash during booting (bnc#877275): * Add 0032-fipvlan-Fix-crash-in-create_and_start_vlan.patch * Add 0033-fipvlan-suppress-warning-interface-already-exists.patch * Add 0034-fipvlan-do-not-crash-on-empty-MAC-address-in-lookup_.patch - Fixup warning messages during booting: * Add 0035-fipvlan-fixup-return-value-on-error.patch * Add 0036-fipvlan-clean-up-state-machine-for-pfd_add.patch - Remove obsolete file fcoe.config from sources OBS-URL: https://build.opensuse.org/request/show/234122 OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=18
32 lines
908 B
Diff
32 lines
908 B
Diff
From eb7451d0dcffb1c247e2b070b6101c2c878faee4 Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Mon, 12 May 2014 15:24:48 +0200
|
|
Subject: fipvlan: do not crash on empty MAC address in lookup_fcf()
|
|
|
|
We're calling lookup_fcf() with a NULL macaddress, so we need
|
|
to ensure we don't crash here.
|
|
|
|
References: bnc#877275
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
fipvlan.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/fipvlan.c b/fipvlan.c
|
|
index 163d21e..c5f3d3f 100644
|
|
--- a/fipvlan.c
|
|
+++ b/fipvlan.c
|
|
@@ -169,7 +169,7 @@ static struct fcf *lookup_fcf(struct fcf_list_head *head, int ifindex,
|
|
|
|
TAILQ_FOREACH(fcf, head, list_node)
|
|
if ((ifindex == fcf->ifindex) && (vlan == fcf->vlan) &&
|
|
- (memcmp(mac, fcf->mac_addr, ETHER_ADDR_LEN) == 0))
|
|
+ (!mac || memcmp(mac, fcf->mac_addr, ETHER_ADDR_LEN) == 0))
|
|
return fcf;
|
|
return NULL;
|
|
}
|
|
--
|
|
1.7.12.4
|
|
|