aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
diff options
context:
space:
mode:
authorSaravana Kannan <[email protected]>2021-04-02 04:03:40 +0000
committerGreg Kroah-Hartman <[email protected]>2021-04-05 07:14:18 +0000
commiteed6e41813deb9ee622cd9242341f21430d7789f (patch)
tree91b999f50ba45512e35dbda8906988f2f87c5dd3 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
parentLinux 5.12-rc6 (diff)
downloadkernel-eed6e41813deb9ee622cd9242341f21430d7789f.tar.gz
kernel-eed6e41813deb9ee622cd9242341f21430d7789f.zip
driver core: Fix locking bug in deferred_probe_timeout_work_func()
list_for_each_entry_safe() is only useful if we are deleting nodes in a linked list within the loop. It doesn't protect against other threads adding/deleting nodes to the list in parallel. We need to grab deferred_probe_mutex when traversing the deferred_probe_pending_list. Cc: [email protected] Fixes: 25b4e70dcce9 ("driver core: allow stopping deferred probe after init") Signed-off-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions