datapath: Use kfree_skb() only on error paths.
authorBen Pfaff <blp@nicira.com>
Fri, 21 Oct 2011 23:38:35 +0000 (16:38 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 21 Oct 2011 23:56:35 +0000 (16:56 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c

index 10bf4b9e477f4a14efe60f744f1def8bce43ebb9..de2f76b0b51207a8a616e6a1592ef328b34a2962 100644 (file)
@@ -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;
                }