diff options
author | 2016-01-14 09:41:46 +0100 | |
---|---|---|
committer | 2016-01-15 22:09:07 +0100 | |
commit | 14e9355363fc5bf98ba63875e117f29d1902d253 (patch) | |
tree | 69459db928537e417a1e289c5c198dc20762a73e /tools/perf/scripts/python/stackcollapse.py | |
parent | ACPI / video: Revert "ACPI / video: driver must be registered before checking for keypresses" (diff) | |
download | linux-dev-14e9355363fc5bf98ba63875e117f29d1902d253.tar.xz linux-dev-14e9355363fc5bf98ba63875e117f29d1902d253.zip |
ACPI / video: Fix using an uninitialized mutex / list_head in acpi_video_handles_brightness_key_presses()
If acpi_video_handles_brightness_key_presses() was called before
acpi_video_register(), it would use the video_list mutex / list_head
uninitialized.
This patch fixes this by using DEFINE_MUTEX / LIST_HEAD when declaring
these, instead of initializing them runtime from acpi_video_register().
Fixes: 90b066b15eda "ACPI / video: Add a acpi_video_handles_brightness_key_presses() helper"
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions