aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/flow.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch/flow.c')
-rw-r--r--net/openvswitch/flow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c
index 5a3195e538ce..9760dc43bdb9 100644
--- a/net/openvswitch/flow.c
+++ b/net/openvswitch/flow.c
@@ -688,6 +688,8 @@ int ovs_flow_key_extract(const struct ip_tunnel_info *tun_info,
688{ 688{
689 /* Extract metadata from packet. */ 689 /* Extract metadata from packet. */
690 if (tun_info) { 690 if (tun_info) {
691 if (ip_tunnel_info_af(tun_info) != AF_INET)
692 return -EINVAL;
691 memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key)); 693 memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key));
692 694
693 if (tun_info->options) { 695 if (tun_info->options) {