From: Kris Murphy Date: Thu, 16 Mar 2017 15:51:28 +0000 (-0500) Subject: openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD X-Git-Tag: Ubuntu-4.10.0-16.18~104 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=556f35aa9665263dec9ffdfa660b3e387c7b79c9;p=mirror_ubuntu-zesty-kernel.git openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD BugLink: http://bugs.launchpad.net/bugs/1677589 [ Upstream commit 8f3dbfd79ed9ef9770305a7cc4e13dfd31ad2cd0 ] Added a case for OVS_TUNNEL_KEY_ATTR_PAD to the switch statement in ip_tun_from_nlattr in order to prevent the default case returning an error. Fixes: b46f6ded906e ("libnl: nla_put_be64(): align on a 64-bit area") Signed-off-by: Kris Murphy Acked-by: Joe Stringer Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman Signed-off-by: Tim Gardner --- diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c index 9425d32010c1..256e8f1450fd 100644 --- a/net/openvswitch/flow_netlink.c +++ b/net/openvswitch/flow_netlink.c @@ -649,6 +649,8 @@ static int ip_tun_from_nlattr(const struct nlattr *attr, tun_flags |= TUNNEL_VXLAN_OPT; opts_type = type; break; + case OVS_TUNNEL_KEY_ATTR_PAD: + break; default: OVS_NLERR(log, "Unknown IP tunnel attribute %d", type);