staging: android: timed_output: fix sysfs file creation race
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Aug 2013 17:27:29 +0000 (10:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Aug 2013 17:27:29 +0000 (10:27 -0700)
commit9d3ab801740ab5ff1e22932fdfecdaacd0d64a18
tree70061c043912a0e7dd36c36428160e87f5eb040a
parent76e1f486b2e6775bba31118b362e01ea6033a0e6
staging: android: timed_output: fix sysfs file creation race

The sysfs file for the driver was being created _after_ the device was
announced to userspace, causing a race with any tools looking for sysfs
files.

Fix the race by using the default attribute group for the class.

Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/timed_output.c