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)
commitc5da4b68d2a8592a7535bb9e4523158088a6538b
treeb07036217baa9210b095571b5316664e0077a665
parent2002fbac743b6e2391b4ed50ad9eb626768dd78a
parent2ffd57327ff1e91ad675c1efd5f02a3d786e64d1
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>