[PATCH] fix/simplify mutex debugging code
Let's switch mutex_debug_check_no_locks_freed() to take (addr, len) as arguments instead, since all its callers were just calculating the 'to' address for themselves anyway... (and sometimes doing so badly). Signed-off-by: David Woodhouse <dwmw2@infradead.org> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a8b9ee7396
commit
a4fc7ab1d0
@ -1027,7 +1027,7 @@ kernel_map_pages(struct page *page, int numpages, int enable)
|
||||
{
|
||||
if (!PageHighMem(page) && !enable)
|
||||
mutex_debug_check_no_locks_freed(page_address(page),
|
||||
page_address(page + numpages));
|
||||
numpages * PAGE_SIZE);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user