]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix reference count leak in balance-alb mode
authorJay Vosburgh <jay.vosburgh@canonical.com>
Thu, 11 Aug 2022 05:06:53 +0000 (22:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Aug 2022 15:51:05 +0000 (08:51 -0700)
commit11e134132fb0beb1584dcbbec18804a6efd7447c
tree2ddaf199ed0da9b8e670ba44f50c69134f74994d
parentcbbc2c41d53cb7f65b336b76ed570ece399e9524
bonding: fix reference count leak in balance-alb mode

Commit c5e8ed492e36 ("net:bonding:support balance-alb interface
with vlan to bridge") introduced a reference count leak by not releasing
the reference acquired by ip_dev_find().  Remedy this by insuring the
reference is released.

Fixes: c5e8ed492e36 ("net:bonding:support balance-alb interface with vlan to bridge")
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/r/26758.1660194413@famine
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_alb.c