summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
diff options
context:
space:
mode:
authorPaul E. McKenney2015-10-13 01:56:42 +0200
committerPaul E. McKenney2015-12-04 21:34:33 +0100
commit2f073848c3cc8aff2655ab7c46d8c0de90cf4e50 (patch)
treea30a9e1b6f0edd5d1837c214cbf26c762fdb0a54 /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
parentlist: Introduces generic list_splice_tail_init_rcu() (diff)
downloadkernel-qcow2-linux-2f073848c3cc8aff2655ab7c46d8c0de90cf4e50.tar.gz
kernel-qcow2-linux-2f073848c3cc8aff2655ab7c46d8c0de90cf4e50.tar.xz
kernel-qcow2-linux-2f073848c3cc8aff2655ab7c46d8c0de90cf4e50.zip
list: Use WRITE_ONCE() when initializing list_head structures
Code that does lockless emptiness testing of non-RCU lists is relying on INIT_LIST_HEAD() to write the list head's ->next pointer atomically, particularly when INIT_LIST_HEAD() is invoked from list_del_init(). This commit therefore adds WRITE_ONCE() to this function's pointer stores that could affect the head's ->next pointer. Reported-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c')
0 files changed, 0 insertions, 0 deletions