summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2017-04-23 14:28:37 +0800
committerDavid S. Miller <davem@davemloft.net>2017-04-24 15:51:30 -0400
commita50fe0ffd76fbd17af36209a16caf0b8ad901fef (patch)
treea948f0c673aedde2585c8f243a88e0c0bbbeae9f /net/tipc
parent09d36071cfbc1fec9c93a30704b687829ee5efef (diff)
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>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions