Re: [PATCH net-next] lwtunnel: fix error path in lwtunnel_fill_encap()
From: David Miller <davem@davemloft.net>
Date: 2017-05-01 02:43:01
Also in:
kernel-janitors
From: David Miller <davem@davemloft.net>
Date: 2017-05-01 02:43:01
Also in:
kernel-janitors
From: Dan Carpenter <redacted> Date: Fri, 28 Apr 2017 16:03:48 +0300
We recently added a check to see if nla_nest_start() fails. There are
two issues with that. First, if it fails then I don't think we should
call nla_nest_cancel(). Second, it's slightly convoluted but the
current code returns success but we should return -EMSGSIZE instead.
Fixes: a50fe0ffd76f ("lwtunnel: check return value of nla_nest_start")
Signed-off-by: Dan Carpenter <redacted>Applied.