workqueue: Calling destroy_work_on_stack() to pair with INIT_WORK_ONSTACK()
authorChuansheng Liu <chuansheng.liu@intel.com>
Sun, 12 Jan 2014 03:26:33 +0000 (22:26 -0500)
committerTejun Heo <tj@kernel.org>
Sun, 12 Jan 2014 03:26:33 +0000 (22:26 -0500)
commit440a11360326044a9addf1c652a0364aad0be90c
tree2dc89eebb6efabf3427e71106c464092dca074d7
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
workqueue: Calling destroy_work_on_stack() to pair with INIT_WORK_ONSTACK()

In case CONFIG_DEBUG_OBJECTS_WORK is defined, it is needed to
call destroy_work_on_stack() which frees the debug object to pair
with INIT_WORK_ONSTACK().

Signed-off-by: Liu, Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c