|
@@ -477,6 +477,8 @@ static int sample(struct datapath *dp, struct sk_buff *skb,
|
|
skb_get(skb);
|
|
skb_get(skb);
|
|
} else {
|
|
} else {
|
|
sample_skb = skb_clone(skb, GFP_ATOMIC);
|
|
sample_skb = skb_clone(skb, GFP_ATOMIC);
|
|
|
|
+ if (!sample_skb) /* Skip sample action when out of memory. */
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
/* Note that do_execute_actions() never consumes skb.
|
|
/* Note that do_execute_actions() never consumes skb.
|