lkml.org 
[lkml]   [2013]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kernel/workqueue.c: kfree issue, need check flag 'WQ_UNBOUND' when processing failure.
On Tue, May 14, 2013 at 09:06:40PM +0800, Chen Gang wrote:
> err_destroy:
> destroy_workqueue(wq);
> + if (flags & WQ_UNBOUND) {
> +err_free_wq:
> + free_workqueue_attrs(wq->unbound_attrs);
> + kfree(wq);
> + }

Doesn't the above make the code free wq twice on after err_destroy?

--
tejun


\
 
 \ /
  Last update: 2013-05-14 18:01    [W:1.327 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site