aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorColy Li <[email protected]>2019-06-28 19:59:44 +0800
committerJens Axboe <[email protected]>2019-06-28 07:39:16 -0600
commitf54d801dda14942dbefa00541d10603015b7859c (patch)
tree2fd3723add980cfeb3d73fe7fc252be461301b5a /lib/mpi/mpi-cmp.c
parent5461999848e0462c14f306a62923d22de820a59c (diff)
bcache: destroy dc->writeback_write_wq if failed to create dc->writeback_thread
Commit 9baf30972b55 ("bcache: fix for gc and write-back race") added a new work queue dc->writeback_write_wq, but forgot to destroy it in the error condition when creating dc->writeback_thread failed. This patch destroys dc->writeback_write_wq if kthread_create() returns error pointer to dc->writeback_thread, then a memory leak is avoided. Fixes: 9baf30972b55 ("bcache: fix for gc and write-back race") Signed-off-by: Coly Li <[email protected]> Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions