]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: fix mem leak in rx_empty
authorShannon Nelson <snelson@pensando.io>
Thu, 22 Oct 2020 23:55:31 +0000 (16:55 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Oct 2020 01:37:23 +0000 (18:37 -0700)
commit63c1e16eb230fb1ae1817d0c100b75d87d732a28
treefdebb53e82e0c12f253c5857eca1e94d984d927b
parentce6db41e0400d389ff439c6356eafbe7f1ea4eae
ionic: fix mem leak in rx_empty

The sentinel descriptor entry was getting missed in the
traverse of the ring from head to tail, so change to a
loop of 0 to the end.

Fixes: 8f6628408f5a ("ionic: use index not pointer for queue tracking")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c