summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_multicast.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2022-12-10 15:56:23 +0100
committerJakub Kicinski <kuba@kernel.org>2022-12-13 00:33:37 +0100
commit160dd93114ddd31ed2b6290a7495d53717b79cf8 (patch)
treee47921ef0de03d3c96915eb7783010fd54028518 /net/bridge/br_multicast.c
parentbridge: mcast: Place netlink policy before validation functions (diff)
downloadlinux-160dd93114ddd31ed2b6290a7495d53717b79cf8.tar.xz
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 'net/bridge/br_multicast.c')
0 files changed, 0 insertions, 0 deletions