-
由 Pavel Belous 提交于
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: 8aaa112a ("net: atlantic: refactoring pm logic") Signed-off-by: NPavel Belous <pbelous@marvell.com> Signed-off-by: NNikita Danilov <ndanilov@marvell.com> Signed-off-by: NIgor Russkikh <irusskikh@marvell.com> Signed-off-by: NDmitry Bogdanov <dbogdanov@marvell.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
52a22f4d