diff options
Diffstat (limited to 'net/openvswitch/actions.c')
-rw-r--r-- | net/openvswitch/actions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index 48badffaafc1..320fa0e6951a 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2007-2012 Nicira Networks. | 2 | * Copyright (c) 2007-2012 Nicira, Inc. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of version 2 of the GNU General Public | 5 | * modify it under the terms of version 2 of the GNU General Public |
@@ -325,6 +325,9 @@ static int sample(struct datapath *dp, struct sk_buff *skb, | |||
325 | } | 325 | } |
326 | } | 326 | } |
327 | 327 | ||
328 | if (!acts_list) | ||
329 | return 0; | ||
330 | |||
328 | return do_execute_actions(dp, skb, nla_data(acts_list), | 331 | return do_execute_actions(dp, skb, nla_data(acts_list), |
329 | nla_len(acts_list), true); | 332 | nla_len(acts_list), true); |
330 | } | 333 | } |