diff options
author | Jeremy Kerr <[email protected]> | 2008-05-14 16:22:58 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2008-05-16 16:53:35 +0200 |
commit | 493d35863dbb692c38c1415fd83d88dfb902ae37 (patch) | |
tree | deaae5462c4a7319b3ff157e9594988ec5d3ceb1 /net/unix/sysctl_net_unix.c | |
parent | f26a3988917913b3d11b2bd741601a2c64ab9204 (diff) |
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 <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions