]> git.baikalelectronics.ru Git - kernel.git/commit
lwtunnel: check erspan options before allocating tun_info
authorXin Long <lucien.xin@gmail.com>
Thu, 21 Nov 2019 10:14:50 +0000 (18:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 19:47:39 +0000 (11:47 -0800)
commitbd52057f6861f4de9fff59beea914ddf101bbb3b
tree2911c68138c4e298783e4f442eca5eccbc1f0bef
parent0bb00fc44a4c106e24755f6b778420087deea3fc
lwtunnel: check erspan options before allocating tun_info

As Jakub suggested on another patch, it's better to do the check
on erspan options before allocating memory.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c