summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSaravana Kannan <saravanak@google.com>2021-04-02 06:03:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-05 09:14:18 +0200
commiteed6e41813deb9ee622cd9242341f21430d7789f (patch)
tree91b999f50ba45512e35dbda8906988f2f87c5dd3 /usr
parentLinux 5.12-rc6 (diff)
downloadlinux-eed6e41813deb9ee622cd9242341f21430d7789f.tar.xz
linux-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: stable@vger.kernel.org Fixes: 25b4e70dcce9 ("driver core: allow stopping deferred probe after init") Signed-off-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20210402040342.2944858-2-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions