* [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 related [flat|nested] 3+ messages in thread
* Re: [PATCH] net/pcap: fix use-after-free
2017-03-13 9:21 [PATCH] net/pcap: fix use-after-free Johan Samuelsson
@ 2017-03-14 17:47 ` Ferruh Yigit
2017-03-14 18:08 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2017-03-14 17:47 UTC (permalink / raw)
To: Johan Samuelsson; +Cc: dev
On 3/13/2017 9:21 AM, Johan Samuelsson wrote:
> Signed-off-by: Johan Samuelsson <johan.xb.samuelsson@ericsson.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net/pcap: fix use-after-free
2017-03-14 17:47 ` Ferruh Yigit
@ 2017-03-14 18:08 ` Ferruh Yigit
0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2017-03-14 18:08 UTC (permalink / raw)
To: Johan Samuelsson; +Cc: dev
On 3/14/2017 5:47 PM, Ferruh Yigit wrote:
> On 3/13/2017 9:21 AM, Johan Samuelsson wrote:
>> Signed-off-by: Johan Samuelsson <johan.xb.samuelsson@ericsson.com>
>
> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Fixes: 2269e7e815a2 ("pcap: add Rx and Tx byte counters")
Cc: stable@dpdk.org
Applied to dpdk-next-net/master, thanks.
^ 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 [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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.