From: Jeremy Kerr Date: Wed, 14 May 2008 23:22:58 +0000 (-0700) Subject: mutex-debug: check mutex magic before owner X-Git-Tag: v2.6.27-rc1~1100^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=493d35863dbb692c38c1415fd83d88dfb902ae37;p=pandora-kernel.git mutex-debug: check mutex magic before owner Currently, the mutex debug code checks the lock->owner before lock->magic, so a corrupt mutex will most likely result in failing the owner check, rather than the magic check. This change to debug_mutex_unlock does the magic check first, so we have a better idea of what breaks. Signed-off-by: Jeremy Kerr Acked-by: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed