Commit ab64f16f authored by Pravin B Shelar's avatar Pravin B Shelar

openvswitch: Fix memory leak.

Need to free memory in case of sample action error.

Introduced by commit 651887b0 ("openvswitch: Sample
action without side effects").
Signed-off-by: default avatarPravin B Shelar <pshelar@nicira.com>
parent b23dc5a7
...@@ -722,8 +722,6 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb, ...@@ -722,8 +722,6 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
case OVS_ACTION_ATTR_SAMPLE: case OVS_ACTION_ATTR_SAMPLE:
err = sample(dp, skb, key, a); err = sample(dp, skb, key, a);
if (unlikely(err)) /* skb already freed. */
return err;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment