lkml.org 
[lkml]   [2019]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH -next] workqueue: fix a memory leak in wq->lock_name
From
Date
On 3/3/19 6:34 AM, Qian Cai wrote:
> diff --git a/kernel/workqueue.c b/kernel/workqueue.c
> index 497900263dbc..e780bf73eced 100644
> --- a/kernel/workqueue.c
> +++ b/kernel/workqueue.c
> @@ -3445,6 +3445,8 @@ static void wq_init_lockdep(struct workqueue_struct *wq)
> lock_name = kasprintf(GFP_KERNEL, "%s%s", "(wq_completion)", wq->name);
> if (!lock_name)
> lock_name = wq->name;
> +
> + wq->lock_name = lock_name;
> lockdep_init_map(&wq->lockdep_map, lock_name, &wq->key, 0);
> }

Not sure how this got overlooked. Anyway:

Reviewed-by: Bart Van Assche <bvanassche@acm.org>

\
 
 \ /
  Last update: 2019-03-03 19:20    [W:0.048 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site