]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46e4265be3c4380d9de5fa91ce504af94e8bfcde
treeab78a1679f46700aa7d5020fc60637c1166a17dd
parenta29b6c66e871d0c4585fe10bf90ef26134c47b2f
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