Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cece95df authored by Wei Yongjun's avatar Wei Yongjun Committed by Tejun Heo
Browse files

workqueue: use kmem_cache_free() instead of kfree()



memory allocated by kmem_cache_alloc() should be freed using
kmem_cache_free(), not kfree().

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 5c529597
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3750,7 +3750,7 @@ static void free_unbound_pwq(struct pool_workqueue *pwq)

	if (pwq) {
		put_unbound_pool(pwq->pool);
		kfree(pwq);
		kmem_cache_free(pwq_cache, pwq);
	}
}