diff options
Diffstat (limited to 'lib/list_debug.c')
-rw-r--r-- | lib/list_debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/list_debug.c b/lib/list_debug.c index 3810b481f940..23a5e031cd8b 100644 --- a/lib/list_debug.c +++ b/lib/list_debug.c | |||
@@ -31,6 +31,9 @@ void __list_add(struct list_head *new, | |||
31 | "list_add corruption. prev->next should be " | 31 | "list_add corruption. prev->next should be " |
32 | "next (%p), but was %p. (prev=%p).\n", | 32 | "next (%p), but was %p. (prev=%p).\n", |
33 | next, prev->next, prev); | 33 | next, prev->next, prev); |
34 | WARN(new == prev || new == next, | ||
35 | "list_add double add: new=%p, prev=%p, next=%p.\n", | ||
36 | new, prev, next); | ||
34 | next->prev = new; | 37 | next->prev = new; |
35 | new->next = next; | 38 | new->next = next; |
36 | new->prev = prev; | 39 | new->prev = prev; |