Ido Schimmel 160dd93114 bridge: mcast: Add a centralized error path
Subsequent patches will add memory allocations in br_mdb_config_init()
as the MDB configuration structure will include a linked list of source
entries. This memory will need to be freed regardless if br_mdb_add()
succeeded or failed.

As a preparation for this change, add a centralized error path where the
memory will be freed.

Note that br_mdb_del() already has one error path and therefore does not
require any changes.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-12-12 15:33:37 -08:00
..
2022-12-12 11:27:42 -08:00
2022-02-25 09:36:06 +01:00
2022-12-12 11:43:16 +01:00
2022-12-12 11:27:42 -08:00
2022-12-02 20:33:30 -08:00
2022-12-02 20:33:30 -08:00
2022-12-12 11:27:42 -08:00
2022-08-22 14:26:30 +01:00
2022-08-22 14:26:30 +01:00