]> git.baikalelectronics.ru Git - kernel.git/commit
list debugging: warn when deleting a deleted entry
authorBaruch Siach <baruch@tkos.co.il>
Tue, 10 Aug 2010 00:20:53 +0000 (17:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 03:45:08 +0000 (20:45 -0700)
commit118a2801a204ca90aef2a84f73b67cea8c60f233
tree180f192f01aca166b30a1f1a119e9d0e9fb3714b
parent53b299b738e27bb6d717716d70bf71366b9126ad
list debugging: warn when deleting a deleted entry

Use the magic LIST_POISON* values to detect an incorrect use of list_del
on a deleted entry.  This DEBUG_LIST specific warning is easier to
understand than the generic Oops message caused by LIST_POISON
dereference.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/list_debug.c