From: Felix Fietkau Date: Tue, 13 Jul 2021 05:53:40 +0000 (+0200) Subject: bridge: fix hotplug vlan overwrite on big-endian systems X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1f283c654aeb1f8983e0a81b7a81cc4784fffe3f;p=project%2Fnetifd.git bridge: fix hotplug vlan overwrite on big-endian systems The avl key type for bridge vlans is uint16_t, so any lookup with a wider type is going to fail on big-endian systems This resulted in hotplug-added devices replacing configured member ports Signed-off-by: Felix Fietkau --- diff --git a/bridge.c b/bridge.c index 4f3fe35..6c8e79a 100644 --- a/bridge.c +++ b/bridge.c @@ -690,7 +690,7 @@ bridge_add_member(struct bridge_state *bst, const char *name) } static struct bridge_vlan * -bridge_hotplug_get_vlan(struct bridge_state *bst, unsigned int vid) +bridge_hotplug_get_vlan(struct bridge_state *bst, uint16_t vid) { struct bridge_vlan *vlan;