mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
gpio: sysfs: fix gpio attribute-creation race
commitebbeba120aupstream. Fix attribute-creation race with userspace by using the default group to create also the contingent gpio device attributes. Fixes:d8f388d8dc("gpio: sysfs interface") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> [ luis: backported to 3.16: - all changes in drivers/gpio/gpiolib.c - adjusted context ] Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
parent
11fd056bd8
commit
58409c4e5a
1 changed files with 40 additions and 22 deletions
Loading…
Add table
Add a link
Reference in a new issue