]> 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)
commit236d85579f3c9bdfd0c64ca83ebc3928a07dc160
tree1f6fe1cb8f6e92a0b3cc76c64f5ada0f011420c8
parent9a9a28aa6c95d1a209b6d392b5f1f8e9c88f6e5f
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: c57a2e30efb0 ("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