]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
erspan: Check IFLA_GRE_ERSPAN_VER is set.
authorWilliam Tu <u9012063@gmail.com>
Tue, 12 May 2020 17:36:23 +0000 (10:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2020 20:11:41 +0000 (13:11 -0700)
commit51fa960d3b5163b1af22efdebcabfccc5d615ad6
treeaad286134e49b89acbfb032c3acb6af575dc1b03
parent113cb8ffd858fd91ec50c27bf0da1d8ca4c01bb1
erspan: Check IFLA_GRE_ERSPAN_VER is set.

Add a check to make sure the IFLA_GRE_ERSPAN_VER is provided by users.

Fixes: f989d546a2d5 ("erspan: Add type I version 0 support.")
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: William Tu <u9012063@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c