Re: [PATCH net 2/2] bonding: fix NULL deref in bond_rr_gen_slave_id

From: Jussi Maki
Date: Tue Sep 20 2022 - 06:10:31 EST


On Tue, Sep 20, 2022 at 1:09 AM Jonathan Toppins <jtoppins@xxxxxxxxxx> wrote:
>
> 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.

Thanks for the fix and sorry for missing the mode change path in the
original patch.

Acked-by: Jussi Maki <joamaki@xxxxxxxxx>