From: Ben Pfaff Date: Tue, 11 Nov 2008 23:40:48 +0000 (-0800) Subject: Verify in execute_actions() that 'skb' is not shared. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd6c80d47c8ab598b35ac00072afe5beff00c73f;p=openvswitch Verify in execute_actions() that 'skb' is not shared. --- diff --git a/datapath/dp_act.c b/datapath/dp_act.c index 14eaac33..c41a3299 100644 --- a/datapath/dp_act.c +++ b/datapath/dp_act.c @@ -460,6 +460,7 @@ void execute_actions(struct datapath *dp, struct sk_buff *skb, struct ofp_action_header *ah = (struct ofp_action_header *)p; size_t len = htons(ah->len); + WARN_ON_ONCE(skb_shared(skb)); if (prev_port != -1) { do_output(dp, skb_clone(skb, GFP_ATOMIC), max_len, prev_port, ignore_no_fwd);