summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHans de Goede2016-01-14 09:41:46 +0100
committerRafael J. Wysocki2016-01-15 22:09:07 +0100
commit14e9355363fc5bf98ba63875e117f29d1902d253 (patch)
tree69459db928537e417a1e289c5c198dc20762a73e /include
parentACPI / video: Revert "ACPI / video: driver must be registered before checking... (diff)
downloadkernel-qcow2-linux-14e9355363fc5bf98ba63875e117f29d1902d253.tar.gz
kernel-qcow2-linux-14e9355363fc5bf98ba63875e117f29d1902d253.tar.xz
kernel-qcow2-linux-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 'include')
0 files changed, 0 insertions, 0 deletions