]> git.baikalelectronics.ru Git - kernel.git/commit
qede: make driver reliable on unload after failures
authorIgor Russkikh <irusskikh@marvell.com>
Sun, 23 Aug 2020 11:19:34 +0000 (14:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 01:01:33 +0000 (18:01 -0700)
commitd95cf4c7cfabb710158a3afd0dd466ca6c6c9f4b
treeda9fe17aef47514c3715b1bfe55b54a9b22bf52a
parentd39c12ed22d633a15a030665f66e354247164bff
qede: make driver reliable on unload after failures

In case recovery was not successful, netdev still should be
present. But we should clear cdev if something bad happens
on recovery.

We also check cdev for null on dev close. That could be a case
if recovery was not successful.

Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_main.c