mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
datapath: Fix return of uninitialized variable.
This commit fixes a return of uninitialized variable bug. The bug can cause failures of operations like flow_add. VMware-BZ: #1405810 Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
@@ -1670,7 +1670,8 @@ static int validate_and_copy_set_tun(const struct nlattr *attr,
|
||||
struct sw_flow_key key;
|
||||
struct ovs_tunnel_info *tun_info;
|
||||
struct nlattr *a;
|
||||
int err, start, opts_type;
|
||||
int start, opts_type;
|
||||
int err = 0;
|
||||
|
||||
ovs_match_init(&match, &key, NULL);
|
||||
opts_type = ipv4_tun_from_nlattr(nla_data(attr), &match, false, log);
|
||||
|
||||
Reference in New Issue
Block a user