Inadvertently we failed to increment tx_pkts pointer while addressing
coverity issue, this patch fixes that.

Fixes: 41b52b732ec5 ("net/qede/base: fix code flow and remove unused code")
Cc: [email protected]

Signed-off-by: Rasesh Mody <[email protected]>
---
 drivers/net/qede/qede_rxtx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
index 83e1bc4..baea1bb 100644
--- a/drivers/net/qede/qede_rxtx.c
+++ b/drivers/net/qede/qede_rxtx.c
@@ -1471,7 +1471,7 @@ static inline uint32_t 
qede_rx_cqe_to_tunn_pkt_type(uint16_t flags)
                bd3 = NULL;
                hdr_size = 0;
 
-               mbuf = *tx_pkts;
+               mbuf = *tx_pkts++;
                assert(mbuf);
 
                /* Check minimum TX BDS availability against available BDs */
-- 
1.7.10.3

Reply via email to