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 7c6c1caed151fa01875c679b156dab16680bb8c9..550e25f4901eb7d9f84f18bc686d74b90201c295 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,