X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=lib%2Flist_debug.c;h=344c710d16ca427ca44c3a2c348b3593e80174a4;hb=9587a678fa56ea6d7f39b048f24f5d03a89bf9b3;hp=1a39f4e3ae1f1a93a8cb87cae13ce77b5c475d96;hpb=8daf14cf56816303d64d1a705fcbc389211ba36e;p=~andy%2Flinux diff --git a/lib/list_debug.c b/lib/list_debug.c index 1a39f4e3ae1..344c710d16c 100644 --- a/lib/list_debug.c +++ b/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);