From a2df85fb6d352d471bb9f4f58225165d742c1d43 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Mon, 9 Aug 2010 17:20:53 -0700 Subject: [PATCH] --- yaml --- r: 207331 b: refs/heads/master c: e3f76e3386ee38e3654e81c2f3933ccca1f2d639 h: refs/heads/master i: 207329: 136cd83465d671d3f8e719d05f19dd02a14b59a2 207327: 0506efce994e392b3df38b9fa54e57605ee6981d v: v3 --- [refs] | 2 +- trunk/lib/list_debug.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b8d4073f9f10..a4b1f0955fa3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 55817d3d5c480f96589359c10ad93fa2e707a029 +refs/heads/master: e3f76e3386ee38e3654e81c2f3933ccca1f2d639 diff --git a/trunk/lib/list_debug.c b/trunk/lib/list_debug.c index 1a39f4e3ae1f..344c710d16ca 100644 --- a/trunk/lib/list_debug.c +++ b/trunk/lib/list_debug.c @@ -43,6 +43,12 @@ EXPORT_SYMBOL(__list_add); */ void list_del(struct list_head *entry) { + WARN(entry->next == LIST_POISON1, + "list_del corruption, next is LIST_POISON1 (%p)\n", + LIST_POISON1); + WARN(entry->next != LIST_POISON1 && entry->prev == LIST_POISON2, + "list_del corruption, prev is LIST_POISON2 (%p)\n", + LIST_POISON2); WARN(entry->prev->next != entry, "list_del corruption. prev->next should be %p, " "but was %p\n", entry, entry->prev->next);