ionic: fix stats memory dereference
authorShannon Nelson <snelson@pensando.io>
Sun, 6 Oct 2019 20:21:07 +0000 (13:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Oct 2019 13:41:56 +0000 (09:41 -0400)
commit4b5149365faa8fddf7dc58e47cfed51b19db051e
tree49c77740db99112242a237eb504240efc77e2647
parent7359db69ee8a8efc842077b8c6311f14bcdee4d7
ionic: fix stats memory dereference

When the netdev is down, the queues and their debug stats
do not exist, so don't try using a pointer to them when
when printing the ethtool stats.

Fixes: e470355bd96a ("ionic: Add driver stats")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.h
drivers/net/ethernet/pensando/ionic/ionic_stats.c