Re: [Patch net] net_sched: properly cancel netlink dump on failure

2018-09-07 Thread David Miller
From: Cong Wang Date: Thu, 6 Sep 2018 14:50:16 -0700 > When nla_put*() fails after nla_nest_start(), we need > to call nla_nest_cancel() to cancel the message, otherwise > we end up calling nla_nest_end() like a success. > > Fixes: 0ed5269f9e41 ("net/sched: add tunnel option support to act_tunn

[Patch net] net_sched: properly cancel netlink dump on failure

2018-09-06 Thread Cong Wang
When nla_put*() fails after nla_nest_start(), we need to call nla_nest_cancel() to cancel the message, otherwise we end up calling nla_nest_end() like a success. Fixes: 0ed5269f9e41 ("net/sched: add tunnel option support to act_tunnel_key") Cc: Davide Caratti Cc: Simon Horman Signed-off-by: Cong