]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bonding-fix-null-deref-in-bond_rr_gen_slave_id'
authorJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 13:40:15 +0000 (06:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 13:40:16 +0000 (06:40 -0700)
commit2e4bd8e68ae8829ace07bf49a207544756d08e83
treeb07036217baa9210b095571b5316664e0077a665
parent47cf78f6126362fc60bf466b508b2737f9a4409f
parent4914c8b7b97928e21af98f9e9ce08729f72ebfda
Merge branch 'bonding-fix-null-deref-in-bond_rr_gen_slave_id'

Jonathan Toppins says:

====================
bonding: fix NULL deref in bond_rr_gen_slave_id

Fix a NULL dereference of the struct bonding.rr_tx_counter member because
if a bond is initially created with an initial mode != zero (Round Robin)
the memory required for the counter is never created and when the mode is
changed there is never any attempt to verify the memory is allocated upon
switching modes.
====================

Link: https://lore.kernel.org/r/cover.1663694476.git.jtoppins@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>