]> git.baikalelectronics.ru Git - kernel.git/commit
lwtunnel: change to use nla_put_u8 for LWTUNNEL_IP_OPT_ERSPAN_VER
authorXin Long <lucien.xin@gmail.com>
Mon, 18 Nov 2019 10:10:12 +0000 (18:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2019 01:19:56 +0000 (17:19 -0800)
commit43293bfe6fb80b28c09f03d8f051a627de711afd
tree83167f15b90cddeecb2d343fdca512468dbb5e9b
parent9b9da86a86c8ec18c3341988269d84c7bcbe43c1
lwtunnel: change to use nla_put_u8 for LWTUNNEL_IP_OPT_ERSPAN_VER

LWTUNNEL_IP_OPT_ERSPAN_VER is u8 type, and nla_put_u8 should have
been used instead of nla_put_u32(). This is a copy-paste error.

Fixes: 3115e88affb9 ("lwtunnel: add options setting and dumping for erspan")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c