From: Ben Pfaff Date: Tue, 11 Nov 2008 23:41:04 +0000 (-0800) Subject: Verify in fwd_port_input() that 'skb' has no destructor. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4f77b254351b7eb5aae974d0d3352c2fd111fe1;p=openvswitch Verify in fwd_port_input() that 'skb' has no destructor. --- diff --git a/datapath/forward.c b/datapath/forward.c index 7c6c1cae..550e25f4 100644 --- a/datapath/forward.c +++ b/datapath/forward.c @@ -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,