diff options
author | 2020-02-14 18:44:57 +0300 | |
---|---|---|
committer | 2020-02-16 19:03:40 -0800 | |
commit | 52a22f4d6ff95e8bdca557765c04893eb5dd83fd (patch) | |
tree | cc209332ae6a6d360e4daf263e06abca0487bbfc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: atlantic: fix potential error handling (diff) | |
download | linux-dev-52a22f4d6ff95e8bdca557765c04893eb5dd83fd.tar.xz linux-dev-52a22f4d6ff95e8bdca557765c04893eb5dd83fd.zip |
net: atlantic: possible fault in transition to hibernation
during hibernation freeze, aq_nic_stop could be invoked
on a stopped device. That may cause panic on access to
not yet allocated vector/ring structures.
Add a check to stop device if it is not yet stopped.
Similiarly after freeze in hibernation thaw, aq_nic_start
could be invoked on a not initialized net device.
Result will be the same.
Add a check to start device if it is initialized.
In our case, this is the same as started.
Fixes: 8aaa112a57c1 ("net: atlantic: refactoring pm logic")
Signed-off-by: Pavel Belous <pbelous@marvell.com>
Signed-off-by: Nikita Danilov <ndanilov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions