net: sched: fix unbalance in the error path of tca_action_flush()
authorDavide Caratti <dcaratti@redhat.com>
Thu, 15 Feb 2018 14:50:57 +0000 (15:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Feb 2018 20:43:17 +0000 (15:43 -0500)
commit66dede2d6b2340235ca212532275446d7bb010fe
tree63f71ac24b38a93233eec17193fd7f0e63419e20
parente5fe068a50fc66a4e4f283859e7e510dbf143f3e
net: sched: fix unbalance in the error path of tca_action_flush()

When tca_action_flush() calls the action walk() and gets an error,
a successful call to nla_nest_start() is not followed by a call to
nla_nest_cancel(). It's harmless, as the skb is freed in the error
path - but it's worth to fix this unbalance.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c