From: Peter Zijlstra Date: Fri, 24 Jul 2009 10:25:30 +0000 (+0200) Subject: sched: Add debug check to task_of() X-Git-Tag: v2.6.32-rc1~719^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f48894fcc89ddec62e1762f73a0825793e59e91;p=pandora-kernel.git sched: Add debug check to task_of() A frequent mistake appears to be to call task_of() on a scheduler entity that is not actually a task, which can result in a wild pointer. Add a check to catch these mistakes. Suggested-by: Ingo Molnar Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed