Re: [patch net] mlxsw: core: Fix race condition in __mlxsw_emad_transmit

2015-10-15 Thread David Miller
From: Jiri Pirko Date: Thu, 15 Oct 2015 08:21:55 +0200 > From: Ido Schimmel > > Under certain conditions EMAD responses can be returned from the device > even before setting trans_active. This will cause the EMAD Rx listener > to drop the EMAD response - as there are no active transactions - an

[patch net] mlxsw: core: Fix race condition in __mlxsw_emad_transmit

2015-10-14 Thread Jiri Pirko
From: Ido Schimmel Under certain conditions EMAD responses can be returned from the device even before setting trans_active. This will cause the EMAD Rx listener to drop the EMAD response - as there are no active transactions - and timeouts will be generated. Fix this by setting trans_active bef