]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7aa4a871afdfe946b8934f7761e8d4421b1102c6
tree1f6fe1cb8f6e92a0b3cc76c64f5ada0f011420c8
parent79e50259964bbf7dda894bc529ac9b9b8b7d4e9a
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: aa99a2388b1a ("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