net/pcap: fix possible mbuf double freeing
authorAideen McLoughlin <aideen.mcloughlin@intel.com>
Thu, 11 Jul 2019 13:59:46 +0000 (14:59 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit49a0a2ffd5db85f7bcc1de37391272f859aabbd4
tree91b5d6b857abbeeba3b7a49f93d94f82dc53a3ee
parent0603752e747978a55a2402be33af333b603c88b8
net/pcap: fix possible mbuf double freeing

In the eth_pcap_tx() and eth_pcap_tx_dumper() functions mbufs were freed
without incrementing num_tx.
This may lead application also try to free or use invalid mbuf.

To fix the issue, the mbuf freeing was removed.

Fixes: 6db141c91e1f ("pcap: support jumbo frames")
Cc: stable@dpdk.org
Signed-off-by: Aideen McLoughlin <aideen.mcloughlin@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c