Re: [PATCH net] mlxsw: core: Fix use-after-free when flashing firmware during init

2018-10-17 Thread David Miller
From: Ido Schimmel Date: Wed, 17 Oct 2018 08:05:45 + > When the switch driver (e.g., mlxsw_spectrum) determines it needs to > flash a new firmware version it resets the ASIC after the flashing > process. The bus driver (e.g., mlxsw_pci) then registers itself again > with mlxsw_core which mean

[PATCH net] mlxsw: core: Fix use-after-free when flashing firmware during init

2018-10-17 Thread Ido Schimmel
When the switch driver (e.g., mlxsw_spectrum) determines it needs to flash a new firmware version it resets the ASIC after the flashing process. The bus driver (e.g., mlxsw_pci) then registers itself again with mlxsw_core which means (among other things) that the device registers itself again with