diff options
| author | Felix Fietkau | 2021-07-13 05:53:40 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2021-07-13 05:53:44 +0000 |
| commit | 1f283c654aeb1f8983e0a81b7a81cc4784fffe3f (patch) | |
| tree | bba9fd7421ccefbff17841647c2c2c47a5f411ed | |
| parent | 4e92ea74273f7d569f2be67066f9ebd33cf2ecad (diff) | |
| download | netifd-1f283c654aeb1f8983e0a81b7a81cc4784fffe3f.tar.gz | |
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 <nbd@nbd.name>
| -rw-r--r-- | bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |