diff options
author | Cong Wang | 2018-09-06 23:50:16 +0200 |
---|---|---|
committer | David S. Miller | 2018-09-08 08:05:07 +0200 |
commit | a162c3511410b50f09c002fea56fea2153b679d0 (patch) | |
tree | a687a142f1edc5d5246cb6b46453ae53ddbd4dc2 /net/ipv4/tcp.c | |
parent | xen/netfront: fix waiting for xenbus state change (diff) | |
download | kernel-qcow2-linux-a162c3511410b50f09c002fea56fea2153b679d0.tar.gz kernel-qcow2-linux-a162c3511410b50f09c002fea56fea2153b679d0.tar.xz kernel-qcow2-linux-a162c3511410b50f09c002fea56fea2153b679d0.zip |
net_sched: properly cancel netlink dump on failure
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 <dcaratti@redhat.com>
Cc: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
0 files changed, 0 insertions, 0 deletions