From d9e214da1eaf3d31b377db38f404ba2215963af8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 21 Oct 2011 16:38:35 -0700 Subject: [PATCH] datapath: Use kfree_skb() only on error paths. Signed-off-by: Ben Pfaff Acked-by: Jesse Gross --- datapath/datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 10bf4b9e..de2f76b0 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -309,7 +309,7 @@ void dp_process_received_packet(struct vport *p, struct sk_buff *skb) upcall.userdata = NULL; upcall.pid = p->upcall_pid; dp_upcall(dp, skb, &upcall); - kfree_skb(skb); + consume_skb(skb); stats_counter = &stats->n_missed; goto out; } -- 2.30.2