]> git.karo-electronics.de Git - karo-tx-linux.git/commit
list_debug: WARN for adding something already in the list
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 25 Apr 2012 01:04:33 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:34 +0000 (15:17 +1000)
commit097f4717ef2928049063603d2ed79296eb89b7f9
tree2ea52b512b7ec5cc6c85524da0eb5a1b54e6e9ad
parent9c193a43b5979928bc9d04fa745916953d4fd0a9
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>
lib/list_debug.c