diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-09-11 15:56:20 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-09-12 23:37:31 -0400 |
| commit | 5829e62ac17a40ab08c1b905565604a4b5fa7af6 (patch) | |
| tree | 9dfd04bae0dc53805fe92daa95c24e37d3252513 /net/openvswitch | |
| parent | 9c0827317f235865ae421293f8aecf6cb327a63e (diff) | |
openvswitch: Fix an error handling path in 'ovs_nla_init_match_and_action()'
All other error handling paths in this function go through the 'error'
label. This one should do the same.
Fixes: 9cc9a5cb176c ("datapath: Avoid using stack larger than 1024.")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
| -rw-r--r-- | net/openvswitch/datapath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 76cf273a56c7..c3aec6227c91 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c | |||
| @@ -1112,7 +1112,8 @@ static int ovs_nla_init_match_and_action(struct net *net, | |||
| 1112 | if (!a[OVS_FLOW_ATTR_KEY]) { | 1112 | if (!a[OVS_FLOW_ATTR_KEY]) { |
| 1113 | OVS_NLERR(log, | 1113 | OVS_NLERR(log, |
| 1114 | "Flow key attribute not present in set flow."); | 1114 | "Flow key attribute not present in set flow."); |
| 1115 | return -EINVAL; | 1115 | error = -EINVAL; |
| 1116 | goto error; | ||
| 1116 | } | 1117 | } |
| 1117 | 1118 | ||
| 1118 | *acts = get_flow_actions(net, a[OVS_FLOW_ATTR_ACTIONS], key, | 1119 | *acts = get_flow_actions(net, a[OVS_FLOW_ATTR_ACTIONS], key, |
