Searched hist:a50fe0ff (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/core/ |
H A D | lwtunnel.c | a50fe0ff Sun Apr 23 01:28:37 CDT 2017 Pan Bian <bianpan2016@163.com> lwtunnel: check return value of nla_nest_start
Function nla_nest_start() may return a NULL pointer on error. However, in function lwtunnel_fill_encap(), the return value of nla_nest_start() is not validated before it is used. This patch checks the return value of nla_nest_start() against NULL.
Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: David S. Miller <davem@davemloft.net> a50fe0ff Sun Apr 23 01:28:37 CDT 2017 Pan Bian <bianpan2016@163.com> lwtunnel: check return value of nla_nest_start Function nla_nest_start() may return a NULL pointer on error. However, in function lwtunnel_fill_encap(), the return value of nla_nest_start() is not validated before it is used. This patch checks the return value of nla_nest_start() against NULL. Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|