]> 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)
commitd30cfe0a62282b80f9f3aa83796370891f16ccf5
treeb07036217baa9210b095571b5316664e0077a665
parent4952bb5f2717052829ecd3a215c9bf85965b0a62
parent273a346175f5971496990ad84c564b3e63403b70
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>