From: Ben Pfaff Date: Fri, 21 Oct 2011 23:38:35 +0000 (-0700) Subject: datapath: Use kfree_skb() only on error paths. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9e214da1eaf3d31b377db38f404ba2215963af8;p=openvswitch datapath: Use kfree_skb() only on error paths. Signed-off-by: Ben Pfaff Acked-by: Jesse Gross --- 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; }