bridge: fix coverity false positive report
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 24 Jun 2023 12:34:12 +0000 (14:34 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 24 Jun 2023 18:52:27 +0000 (20:52 +0200)
commit493e1589bc8b67a34d2576c5793dfc4ffc9e52ed
treebeaa437668e4f6cbbb42928cc9b639be385ce6c2
parentedf3aced9f9ae4b07cfbb98d3919ddc7a9e44362
bridge: fix coverity false positive report

Fix Coverity Defect 1532481 reporting a Resource leak when
!bm->node.avl.key is false in bridge_hotplug_add.

This is not a real issue, since bm->node.avl.key is always NULL for newly
allocated entries and guaranteed to be non-NULL for entries returned by
vlist_find.

Fixes: edf3aced9f9a ("bridge: add support for adding vlan ranges via hotplug")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
bridge.c