Skip to contentSkip to conversation

debugobjects fix

GIT PULL Ingo Molnar 1 participant 1 message Jul 7, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git core-urgent-for-linus

Thanks,

Ingo

------------------>
Marcin Slusarz (1):
debugobjects: Fix boot crash when kmemleak and debugobjects enabled

 lib/debugobjects.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/debugobjects.c +1 -1
index 9d86e45..a78b7c6 100644
@@ -198,7 +198,7 @@ static void free_object(struct debug_obj *obj)
 	 * initialized:
 	 */
 	if (obj_pool_free > ODEBUG_POOL_SIZE && obj_cache)
-		sched = !work_pending(&debug_obj_work);
+		sched = keventd_up() && !work_pending(&debug_obj_work);
 	hlist_add_head(&obj->node, &obj_pool);
 	obj_pool_free++;
 	obj_pool_used--;