Re: [PATCH 1/1] lwtunnel: check return value of nla_nest_start
From: David Miller
Date: Mon Apr 24 2017 - 15:51:52 EST
From: Pan Bian <bianpan2016@xxxxxxx>
Date: Sun, 23 Apr 2017 14:28:37 +0800
> 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@xxxxxxx>
Applied.