summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/acer-wmi.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-06-16 16:27:54 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-06-19 01:11:14 +0200
commit2a8b18e9fb650ab5c637005a7506045c46ed2b0e (patch)
tree637a4660e3ba3e89e8c3bea3b709712c4bcb333e /drivers/platform/x86/acer-wmi.c
parent7ee33baabcae765e1eda73b988a62fe102c0ce76 (diff)
downloadlinux-2a8b18e9fb650ab5c637005a7506045c46ed2b0e.tar.gz
linux-2a8b18e9fb650ab5c637005a7506045c46ed2b0e.tar.bz2
linux-2a8b18e9fb650ab5c637005a7506045c46ed2b0e.zip
ACPI / video: Fix acpi_video _register vs _unregister_backlight race
It is possible for a native backlight driver to load while acpi_video_register is running, which may lead to acpi_video_unregister_backlight being called while acpi_video_register is running and the 2 racing against eachother. The register_count variable protects against this, but not in a thread safe manner, this commit adds locking to make this thread safe. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/platform/x86/acer-wmi.c')
0 files changed, 0 insertions, 0 deletions