ionic: check qcq ptr in ionic_qcq_disable
authorShannon Nelson <snelson@pensando.io>
Thu, 1 Oct 2020 16:22:42 +0000 (09:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2020 23:30:01 +0000 (16:30 -0700)
commit7c737fc43ca0ab81f92cdb2c448b2bc114d53179
treeab78a1679f46700aa7d5020fc60637c1166a17dd
parent2c580d7783c78c115cea9e50b43477f3eab5076d
ionic: check qcq ptr in ionic_qcq_disable

There are a couple of error recovery paths that can come through
ionic_qcq_disable() without having set up the qcq, so we need
to make sure we have a valid qcq pointer before using it.

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