aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2020-02-04 11:10:12 -0800
committerDavid S. Miller <[email protected]>2020-02-05 14:11:57 +0100
commit52b5ae501c045010aeeb1d5ac0373ff161a88291 (patch)
tree701c31838708e8147ed62ee53c15b17df0aad781 /lib/mpi/mpi-bit.c
parent2c22c06ce426a0d025a3dacd17cd8868f3dbe96b (diff)
net_sched: fix a resource leak in tcindex_set_parms()
Jakub noticed there is a potential resource leak in tcindex_set_parms(): when tcindex_filter_result_init() fails and it jumps to 'errout1' which doesn't release the memory and resources allocated by tcindex_alloc_perfect_hash(). We should just jump to 'errout_alloc' which calls tcindex_free_perfect_hash(). Fixes: b9a24bb76bf6 ("net_sched: properly handle failure case of tcf_exts_init()") Reported-by: Jakub Kicinski <[email protected]> Cc: Jamal Hadi Salim <[email protected]> Cc: Jiri Pirko <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions