Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207331
b: refs/heads/master
c: e3f76e3
h: refs/heads/master
i:
  207329: 136cd83
  207327: 0506efc
v: v3
  • Loading branch information
Baruch Siach authored and Linus Torvalds committed Aug 10, 2010
1 parent 1053772 commit a2df85f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 55817d3d5c480f96589359c10ad93fa2e707a029
refs/heads/master: e3f76e3386ee38e3654e81c2f3933ccca1f2d639
6 changes: 6 additions & 0 deletions trunk/lib/list_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a2df85f

Please sign in to comment.