aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-05-27 22:10:29 -0500
committerDavid S. Miller <davem@davemloft.net>2020-05-28 11:08:16 -0700
commita068aab42258e25094bc2c159948d263ed7d7a77 (patch)
treeec255ba76de111c5398513fa3cfb2cd5c1c4dcad /net
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf (diff)
downloadwireguard-linux-a068aab42258e25094bc2c159948d263ed7d7a77.tar.xz
wireguard-linux-a068aab42258e25094bc2c159948d263ed7d7a77.zip
bonding: Fix reference count leak in bond_sysfs_slave_add.
kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Previous commit "b8eb718348b8" fixed a similar problem. Fixes: 07699f9a7c8d ("bonding: add sysfs /slave dir for bond slave devices.") Signed-off-by: Qiushi Wu <wu000273@umn.edu> Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions