diff options
Diffstat (limited to 'include/linux/list_nulls.h')
-rw-r--r-- | include/linux/list_nulls.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/list_nulls.h b/include/linux/list_nulls.h index f266661d2666..444d2b1313bd 100644 --- a/include/linux/list_nulls.h +++ b/include/linux/list_nulls.h | |||
@@ -76,7 +76,8 @@ static inline void __hlist_nulls_del(struct hlist_nulls_node *n) | |||
76 | { | 76 | { |
77 | struct hlist_nulls_node *next = n->next; | 77 | struct hlist_nulls_node *next = n->next; |
78 | struct hlist_nulls_node **pprev = n->pprev; | 78 | struct hlist_nulls_node **pprev = n->pprev; |
79 | *pprev = next; | 79 | |
80 | WRITE_ONCE(*pprev, next); | ||
80 | if (!is_a_nulls(next)) | 81 | if (!is_a_nulls(next)) |
81 | next->pprev = pprev; | 82 | next->pprev = pprev; |
82 | } | 83 | } |