diff options
author | 2013-08-19 10:07:46 +0800 | |
---|---|---|
committer | 2013-08-28 13:13:05 +0200 | |
commit | 9b77ace409e1419c331209c4c8eb2c8bc990e9fd (patch) | |
tree | 0bb3a43aee693c3fe68924a2dfc07254ef3f69b3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | pinctrl: imx: Fix compilation with DEBUG enabled (diff) | |
download | linux-dev-9b77ace409e1419c331209c4c8eb2c8bc990e9fd.tar.xz linux-dev-9b77ace409e1419c331209c4c8eb2c8bc990e9fd.zip |
pinctrl: core: Add proper mutex lock in pinctrl_request_gpio
This one is missed in commit 42fed7ba "pinctrl: move subsystem mutex to
pinctrl_dev struct".
I think this fixes the race between pin_free() and pin_request() calls.
It protects accessing the members of pctldev->desc.
(e.g. update desc->mux_usecount, desc->gpio_owner, desc->mux_owner, etc)
Current code grabs pctldev->mutex before calling pinmux_free_gpio(),
but did not grab the mutex while calling pinmux_request_gpio().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions