]> asedeno.scripts.mit.edu Git - linux.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)
commit1841b9829903c82e0445032ad4a7556fcc44a497
tree2911c68138c4e298783e4f442eca5eccbc1f0bef
parent7b6a70f7376479ee0a185b7c2e57b26243f1052d
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