aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorZheng Qixing <[email protected]>2025-07-01 07:17:17 +0000
committerChristoph Hellwig <[email protected]>2025-07-14 13:50:32 +0000
commit80d7762e0a42307ee31b21f090e21349b98c14f6 (patch)
tree976ae6000a16a80a14b5ef532801fc0bde3090de /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentblock: fix kobject leak in blk_unregister_queue (diff)
downloadkernel-80d7762e0a42307ee31b21f090e21349b98c14f6.tar.gz
kernel-80d7762e0a42307ee31b21f090e21349b98c14f6.zip
nvme: fix inconsistent RCU list manipulation in nvme_ns_add_to_ctrl_list()
When inserting a namespace into the controller's namespace list, the function uses list_add_rcu() when the namespace is inserted in the middle of the list, but falls back to a regular list_add() when adding at the head of the list. This inconsistency could lead to race conditions during concurrent access, as users might observe a partially updated list. Fix this by consistently using list_add_rcu() in both code paths to ensure proper RCU protection throughout the entire function. Fixes: be647e2c76b2 ("nvme: use srcu for iterating namespace list") Signed-off-by: Zheng Qixing <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions