X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=kernel%2Finclude%2Flinux%2Flist_nulls.h;h=444d2b1313bda37647b1660e4582202a7e3b66e4;hb=e09b41010ba33a20a87472ee821fa407a5b8da36;hp=f266661d2666596d808bbe8756c91239f5b8e6dc;hpb=f93b97fd65072de626c074dbe099a1fff05ce060;p=kvmfornfv.git diff --git a/kernel/include/linux/list_nulls.h b/kernel/include/linux/list_nulls.h index f266661d2..444d2b131 100644 --- a/kernel/include/linux/list_nulls.h +++ b/kernel/include/linux/list_nulls.h @@ -76,7 +76,8 @@ static inline void __hlist_nulls_del(struct hlist_nulls_node *n) { struct hlist_nulls_node *next = n->next; struct hlist_nulls_node **pprev = n->pprev; - *pprev = next; + + WRITE_ONCE(*pprev, next); if (!is_a_nulls(next)) next->pprev = pprev; }