* [dpdk-dev] [PATCH] net/pcap: fix use-after-free
@ 2017-03-13 9:21 Johan Samuelsson
2017-03-14 17:47 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Johan Samuelsson @ 2017-03-13 9:21 UTC (permalink / raw)
To: ferruh.yigit; +Cc: dev, Johan Samuelsson
Signed-off-by: Johan Samuelsson <johan.xb.samuelsson@ericsson.com>
---
drivers/net/pcap/rte_eth_pcap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c
index 7f0b650..075e3be 100644
--- a/drivers/net/pcap/rte_eth_pcap.c
+++ b/drivers/net/pcap/rte_eth_pcap.c
@@ -293,9 +293,9 @@ eth_pcap_tx_dumper(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
}
}
- rte_pktmbuf_free(mbuf);
num_tx++;
tx_bytes += mbuf->pkt_len;
+ rte_pktmbuf_free(mbuf);
}
/*
--
2.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-14 18:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 9:21 [dpdk-dev] [PATCH] net/pcap: fix use-after-free Johan Samuelsson
2017-03-14 17:47 ` Ferruh Yigit
2017-03-14 18:08 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).