]> git.ipfire.org Git - people/ms/linux.git/commitdiff
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)
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>

Trivial merge