]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: sysfs: fix gpio attribute-creation race
authorJohan Hovold <johan@kernel.org>
Tue, 13 Jan 2015 12:00:06 +0000 (13:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:20:56 +0000 (17:20 +0100)
commit0d5197d175876624d0ad35357605dd7b5fea12ac
tree34ced1282b4b34b9ee79e9e0549dbca3ade7aab6
parent9a30a4ed40a23054ecb8ef351cac8e2e8de3d7a2
gpio: sysfs: fix gpio attribute-creation race

Fix attribute-creation race with userspace by using the default group
to create also the contingent gpio device attributes.

Fixes: 601455711103 ("gpio: sysfs interface")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c
drivers/gpio/gpiolib.h