Verify in fwd_port_input() that 'skb' has no destructor.
authorBen Pfaff <blp@nicira.com>
Tue, 11 Nov 2008 23:41:04 +0000 (15:41 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Nov 2008 20:44:04 +0000 (12:44 -0800)
datapath/forward.c

index 7c6c1ca..550e25f 100644 (file)
@@ -69,6 +69,7 @@ void fwd_port_input(struct sw_chain *chain, struct sk_buff *skb,
                    struct net_bridge_port *p)
 {
        WARN_ON_ONCE(skb_shared(skb));
+       WARN_ON_ONCE(skb->destructor);
        if (run_flow_through_tables(chain, skb, p))
                dp_output_control(chain->dp, skb, fwd_save_skb(skb), 
                                  chain->dp->miss_send_len,