ionic: check for NULL structs on teardown
authorShannon Nelson <snelson@pensando.io>
Fri, 20 Mar 2020 02:31:53 +0000 (19:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 02:56:04 +0000 (19:56 -0700)
commita4674f34711b96b65bdc4d54eca88d2fd123bbc6
tree395bc732e36148eda5ef33c41a0e6367f7eb66ce
parentb9c17d39d5d19b321414a1737c754a819878424a
ionic: check for NULL structs on teardown

Make sure the queue structs exist before trying to tear
them down to make for safer error recovery.

Fixes: 0f3154e6bcb3 ("ionic: Add Tx and Rx handling")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c
drivers/net/ethernet/pensando/ionic/ionic_main.c