]> git.baikalelectronics.ru Git - kernel.git/commit
list_debug: WARN for adding something already in the list
authorChris Metcalf <cmetcalf@tilera.com>
Tue, 29 May 2012 22:07:31 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:32 +0000 (16:22 -0700)
commitbd6e71d3d1920b67df0ae86bb9a024648716fd18
tree7aa3a8683c48ff5d5c5fd987f0edbc34171ddb7e
parenta1363ade60c32067e267cad1dec9f347a0113c3c
list_debug: WARN for adding something already in the list

We were bitten by this at one point and added an additional sanity test
for DEBUG_LIST.  You can't validly add a list_head to a list where either
prev or next is the same as the thing you're adding.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/list_debug.c