aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/sit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index 6cee844678e2..f639866b3dcf 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1296,7 +1296,7 @@ static int ipip6_validate(struct nlattr *tb[], struct nlattr *data[])
1296{ 1296{
1297 u8 proto; 1297 u8 proto;
1298 1298
1299 if (!data) 1299 if (!data || !data[IFLA_IPTUN_PROTO])
1300 return 0; 1300 return 0;
1301 1301
1302 proto = nla_get_u8(data[IFLA_IPTUN_PROTO]); 1302 proto = nla_get_u8(data[IFLA_IPTUN_PROTO]);