aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorPavel Belous <[email protected]>2020-02-14 18:44:57 +0300
committerDavid S. Miller <[email protected]>2020-02-16 19:03:40 -0800
commit52a22f4d6ff95e8bdca557765c04893eb5dd83fd (patch)
treecc209332ae6a6d360e4daf263e06abca0487bbfc /lib/mpi/mpi-internal.h
parent380ec5b9af7f0d57dbf6ac067fd9f33cff2fef71 (diff)
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 <[email protected]> Signed-off-by: Nikita Danilov <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: Dmitry Bogdanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions