diff options
author | Adrien Schildknecht <[email protected]> | 2016-01-04 23:22:28 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2016-01-05 13:38:50 +0100 |
commit | aecbd9b1bff6afbe349921b406b99d285b412820 (patch) | |
tree | 002e2aea096bdb9c1f335f37bfe2ff7c19547c37 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 49eb5208220a9eef7529decbdefd95e4b94a928b (diff) |
ACPI / video: driver must be registered before checking for keypresses
acpi_video_handles_brightness_key_presses() may use an uninitialized mutex.
The error has been reported by lockdep: DEBUG_LOCKS_WARN_ON(l->magic != l).
The function assumes that the video driver has been registered before being
called. As explained in the comment of acpi_video_init(), the registration
of the video class may be defered and thus may not take place in the init
function of the module.
Use completion mechanisms to make sure that
acpi_video_handles_brightness_key_presses() wait for the completion of
acpi_video_register() before using the mutex.
Also get rid of register_count since task completion can replace it.
Signed-off-by: Adrien Schildknecht <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions