@@ -42,7 +42,13 @@ bool __list_del_entry_valid(struct list_head *entry)
prev = entry->prev;
next = entry->next;
- if (CHECK_DATA_CORRUPTION(next == LIST_POISON1,
+ if (CHECK_DATA_CORRUPTION(next == NULL,
+ "list_del corruption, %p->next is NULL\n",
+ entry) ||
+ CHECK_DATA_CORRUPTION(prev == NULL,
+ "list_del corruption, %p->prev is NULL\n",
+ entry) ||
+ CHECK_DATA_CORRUPTION(next == LIST_POISON1,
"list_del corruption, %p->next is LIST_POISON1 (%p)\n",
entry, LIST_POISON1) ||
CHECK_DATA_CORRUPTION(prev == LIST_POISON2,
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> --- lib/list_debug.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)