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)
commit0c32a28e247f51b0b67b5abb6e9368542e30c136
treefdebb53e82e0c12f253c5857eca1e94d984d927b
parent43ecf7b46f2688fd37909801aee264f288b3917b
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: f1d2e894f1b7 ("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