]> git.baikalelectronics.ru Git - kernel.git/commit
input: lm8323: fix attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:54 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Fri, 27 Jun 2014 20:43:45 +0000 (13:43 -0700)
commit9605ea6e7ee3d20de7bcced9960aba4cd5786277
tree1f7cd7ba3bd5d646811e2b826be4e6f65d2a23ac
parent2cf92801d2fc922e2bdfc95375e4887ad4fb2c1e
input: lm8323: fix attribute-creation race

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

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/input/keyboard/lm8323.c