Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308979
b: refs/heads/master
c: 17a801f
h: refs/heads/master
i:
  308977: aa583df
  308975: c9e0749
v: v3
  • Loading branch information
Chris Metcalf authored and Linus Torvalds committed May 29, 2012
1 parent e952f1c commit ed6bbe4
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 401dea7f7ade662b77c33ce2498fb5b4f97cb29c
refs/heads/master: 17a801f4bfeb8d55df1b05fa7adb16ada504e765
3 changes: 3 additions & 0 deletions trunk/lib/list_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ void __list_add(struct list_head *new,
"list_add corruption. prev->next should be "
"next (%p), but was %p. (prev=%p).\n",
next, prev->next, prev);
WARN(new == prev || new == next,
"list_add double add: new=%p, prev=%p, next=%p.\n",
new, prev, next);
next->prev = new;
new->next = next;
new->prev = prev;
Expand Down

0 comments on commit ed6bbe4

Please sign in to comment.