ionic: fix gathering of debug stats
authorShannon Nelson <snelson@pensando.io>
Mon, 27 Sep 2021 21:07:18 +0000 (14:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2021 12:19:57 +0000 (13:19 +0100)
commitc23bb54f28d61a48008428e8cd320c947993919b
tree1f6fe1cb8f6e92a0b3cc76c64f5ada0f011420c8
parent3fb2a54b414f493a0c83a085cad78d72bfb49d60
ionic: fix gathering of debug stats

Don't print stats for which we haven't reserved space as it can
cause nasty memory bashing and related bad behaviors.

Fixes: aa620993b1e5 ("ionic: pull per-q stats work out of queue loops")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_stats.c