From fd6c80d47c8ab598b35ac00072afe5beff00c73f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 11 Nov 2008 15:40:48 -0800 Subject: [PATCH] Verify in execute_actions() that 'skb' is not shared. --- datapath/dp_act.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2