projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ip_tunnels: record IP version in tunnel info
[cascardo/linux.git]
/
net
/
openvswitch
/
flow.c
diff --git
a/net/openvswitch/flow.c
b/net/openvswitch/flow.c
index
5a3195e
..
9760dc4
100644
(file)
--- 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,
{
/* Extract metadata from packet. */
if (tun_info) {
+ if (ip_tunnel_info_af(tun_info) != AF_INET)
+ return -EINVAL;
memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key));
if (tun_info->options) {