aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-06-16 10:27:54 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-06-18 19:11:14 -0400
commit2a8b18e9fb650ab5c637005a7506045c46ed2b0e (patch)
tree637a4660e3ba3e89e8c3bea3b709712c4bcb333e /scripts/gdb/linux/utils.py
parent7ee33baabcae765e1eda73b988a62fe102c0ce76 (diff)
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions