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)
commit3132174b4b5c999d383f047eebdcd8a326431802
tree83167f15b90cddeecb2d343fdca512468dbb5e9b
parentbec39a9fbbfa52dc8e6b213b1bde57313b252dd6
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: b0a21810bd5e ("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