Skip to content

Commit 9013ef3

Browse files
authored
Merge pull request #193 from sysprog21/refine-poison
Clarify the values for list poison
2 parents df5427f + 5ce9e36 commit 9013ef3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

list.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ static inline void list_del(struct list_head *node)
150150
prev->next = next;
151151

152152
#ifdef LIST_POISONING
153-
node->prev = (struct list_head *) (0x00100100);
154-
node->next = (struct list_head *) (0x00200200);
153+
node->next = NULL;
154+
node->prev = NULL;
155155
#endif
156156
}
157157

scripts/checksums

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
db6784ff3917888db4d1dceaa0570d99ed40e762 queue.h
2-
a99303fdca46c2121c61f7b96346de55226d0086 list.h
2+
a35ff719849dbe38d903576a332989c5ba7242bf list.h
33
3bb0192cee08d165fd597a9f6fbb404533e28fcf scripts/check-commitlog.sh

0 commit comments

Comments
 (0)