diff options
author | Jose Abreu <[email protected]> | 2019-02-18 14:35:03 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-02-18 17:39:11 -0800 |
commit | 8a7493e58ad688eb23b81e45461c5d314f4402f1 (patch) | |
tree | 7bed5d973606e75cb3ba9e2bf3c1fe441de0cbe8 /scripts/gen_compile_commands.py | |
parent | 694d79027ef496afe3d87ec1738f5c7fb54e04f5 (diff) |
net: stmmac: Fix a race in EEE enable callback
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 <[email protected]>
Fixes: d765955d2ae0 ("stmmac: add the Energy Efficient Ethernet support")
Cc: Joao Pinto <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Giuseppe Cavallaro <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions