]> git.ipfire.org Git - thirdparty/linux.git/commit
mfd: core: Add locking around 'mfd_of_node_list'
authorDouglas Anderson <dianders@chromium.org>
Wed, 10 Dec 2025 19:30:03 +0000 (11:30 -0800)
committerLee Jones <lee@kernel.org>
Thu, 22 Jan 2026 14:22:22 +0000 (14:22 +0000)
commit20117c92bcf9c11afd64d7481d8f94fdf410726e
treeab2327a9f14c7e2d615dd545361dc1f421195e56
parenta71fee8421cf05d022880ae102983cd46535dac0
mfd: core: Add locking around 'mfd_of_node_list'

Manipulating a list in the kernel isn't safe without some sort of
mutual exclusion. Add a mutex any time we access / modify
'mfd_of_node_list' to prevent possible crashes.

Cc: stable@vger.kernel.org
Fixes: 466a62d7642f ("mfd: core: Make a best effort attempt to match devices with the correct of_nodes")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patch.msgid.link/20251210113002.1.I6ceaca2cfb7eb25737012b166671f516696be4fd@changeid
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/mfd-core.c