Commit 1fc42b84 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Greg Kroah-Hartman

pinctrl: protect pinctrl_list add

commit 7b320cb1ed2dbd2c5f2a778197baf76fd6bf545a upstream.

We have few fedora bug reports about list corruption on pinctrl,
for example:

Most likely corruption happen due lack of protection of pinctrl_list
when adding new nodes to it. Patch corrects that.

Fixes: 42fed7ba ("pinctrl: move subsystem mutex to pinctrl_dev struct")
Signed-off-by: default avatarStanislaw Gruszka <>
Acked-by: default avatarStephen Warren <>
Signed-off-by: default avatarLinus Walleij <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent c2b570f3
......@@ -807,7 +807,9 @@ static struct pinctrl *create_pinctrl(struct device *dev)
/* Add the pinctrl handle to the global list */
list_add_tail(&p->node, &pinctrl_list);
return p;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment