]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit261107f81aea5329a62c5d2a6b4615472aff4041
tree49c77740db99112242a237eb504240efc77e2647
parente876705bfb3dc1e3e1c8332a4880e6301652095e
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: 53fe93dd5b1c ("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