]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: protect pinctrl_list add
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 4 Feb 2014 08:07:09 +0000 (09:07 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Feb 2014 20:59:45 +0000 (21:59 +0100)
commit9c589f815c629c8c4061d41be4252de15086b283
tree635601d6b411639a5597069a73a2ff5b4321686a
parente00c23e9e3c150a9e9716df7c59c31364fba8c26
pinctrl: protect pinctrl_list add

We have few fedora bug reports about list corruption on pinctrl,
for example:
https://bugzilla.redhat.com/show_bug.cgi?id=1051918

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

Fixes: ccb131d5fa2 ("pinctrl: move subsystem mutex to pinctrl_dev struct")
Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c