Parcourir la source

openvswitch: Fix memory leak.

Need to free memory in case of sample action error.

Introduced by commit 651887b0c22cffcfce7eb9c ("openvswitch: Sample
action without side effects").

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Pravin B Shelar il y a 11 ans
Parent
commit
ab64f16ff2
1 fichiers modifiés avec 0 ajouts et 2 suppressions
  1. 0 2
      net/openvswitch/actions.c

+ 0 - 2
net/openvswitch/actions.c

@@ -722,8 +722,6 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
 
 		case OVS_ACTION_ATTR_SAMPLE:
 			err = sample(dp, skb, key, a);
-			if (unlikely(err)) /* skb already freed. */
-				return err;
 			break;
 		}