Re: [PATCH net] net: stmmac: Fix a race in EEE enable callback

2019-02-18 Thread David Miller
From: Jose Abreu Date: Mon, 18 Feb 2019 14:35:03 +0100 > We are saving the status of EEE even before we try to enable it. This > leads to a race with XMIT function that tries to arm EEE timer before we > set it up. > > Fix this by only saving the EEE parameters after all operations are > perform

[PATCH net] net: stmmac: Fix a race in EEE enable callback

2019-02-18 Thread Jose Abreu
We are saving the status of EEE even before we try to enable it. This leads to a race with XMIT function that tries to arm EEE timer before we set it up. Fix this by only saving the EEE parameters after all operations are performed with success. Signed-off-by: Jose Abreu Fixes: d765955d2ae0 ("st