diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-01-14 09:41:46 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-01-15 22:09:07 +0100 |
commit | 14e9355363fc5bf98ba63875e117f29d1902d253 (patch) | |
tree | 69459db928537e417a1e289c5c198dc20762a73e /include/acpi | |
parent | 970530cd00578d9dd9de45ecf297b28f6809c738 (diff) | |
download | op-kernel-dev-14e9355363fc5bf98ba63875e117f29d1902d253.zip op-kernel-dev-14e9355363fc5bf98ba63875e117f29d1902d253.tar.gz |
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 'include/acpi')
0 files changed, 0 insertions, 0 deletions