diff options
author | Xidong Wang <[email protected]> | 2018-04-10 16:29:34 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-04-11 10:28:31 -0700 |
commit | 1ec6995d1290bfb87cc3a51f0836c889e857cef9 (patch) | |
tree | 455759eace6680ca870b1065ee911048ab261bd9 /tools/perf/scripts/python/netdev-times.py | |
parent | 2a70f6a76bb86d1f39a34b7764f6dcc4257b0356 (diff) |
z3fold: fix memory leak
In z3fold_create_pool(), the memory allocated by __alloc_percpu() is not
released on the error path that pool->compact_wq , which holds the
return value of create_singlethread_workqueue(), is NULL. This will
result in a memory leak bug.
[[email protected]: fix oops on kzalloc() failure, check __alloc_percpu() retval]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Xidong Wang <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: Mike Rapoport <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions