summaryrefslogtreecommitdiffstats
path: root/lib/bucket_locks.c
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2018-08-14 20:29:56 +0300
committerDavid S. Miller <davem@davemloft.net>2018-08-16 12:12:12 -0700
commit32039eac4c48f70dfaad36a84f30356ededc7ea8 (patch)
treee032ecc8fe44d5c4534999e5bdd97e1cced66080 /lib/bucket_locks.c
parent5f34f69ede27dea1f167a0a6d8996f0194b27ba8 (diff)
downloadtalos-obmc-linux-32039eac4c48f70dfaad36a84f30356ededc7ea8.tar.gz
talos-obmc-linux-32039eac4c48f70dfaad36a84f30356ededc7ea8.zip
net: sched: act_ife: always release ife action on init error
Action init API was changed to always take reference to action, even when overwriting existing action. Substitute conditional action release, which was executed only if action is newly created, with unconditional release in tcf_ife_init() error handling code to prevent double free or memory leak in case of overwrite. Fixes: 4e8ddd7f1758 ("net: sched: don't release reference on action overwrite") Reported-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/bucket_locks.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud