]> git.baikalelectronics.ru Git - kernel.git/commit
leds: netxbig: fix attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:50 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Wed, 25 Jun 2014 22:27:37 +0000 (15:27 -0700)
commitdb9bae7fe62b92019736d3607d6c6015cdb4aeeb
treedb8477424fcb782db0fdbe4705faa5a109ad0639
parentd55535f70e6a5122a59ff24c77ee4abe1bf5fec7
leds: netxbig: fix attribute-creation race

Use the attribute groups of the led-class to create the sata attribute
during probe in order to avoid racing with userspace.

[cooloney@gmail.com: clean up return led_classdev_register()]

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-netxbig.c