diff options
author | 2022-12-10 16:56:23 +0200 | |
---|---|---|
committer | 2022-12-12 15:33:37 -0800 | |
commit | 160dd93114ddd31ed2b6290a7495d53717b79cf8 (patch) | |
tree | e47921ef0de03d3c96915eb7783010fd54028518 /tools/perf/scripts/python/stackcollapse.py | |
parent | bridge: mcast: Place netlink policy before validation functions (diff) | |
download | wireguard-linux-160dd93114ddd31ed2b6290a7495d53717b79cf8.tar.xz wireguard-linux-160dd93114ddd31ed2b6290a7495d53717b79cf8.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions