aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2021-11-28 20:00:28 +0100
committerHans de Goede <[email protected]>2021-12-06 22:33:35 +0100
commit9918878676a5f9e99b98679f04b9e6c0f5426b0a (patch)
treeaeb2410cc8c39fb9cfa8c7e77257a605fee223ef /tools/perf/scripts/python/bin
parenta90b38c58667142ecff2521481ed44286d46b140 (diff)
platform/x86: wmi: Fix driver->notify() vs ->probe() race
The driver core sets struct device->driver before calling out to the bus' probe() method, this leaves a window where an ACPI notify may happen on the WMI object before the driver's probe() method has completed running, causing e.g. the driver's notify() callback to get called with drvdata not yet being set leading to a NULL pointer deref. At a check for this to the WMI core, ensuring that the notify() callback is not called before the driver is ready. Fixes: 1686f5444546 ("platform/x86: wmi: Incorporate acpi_install_notify_handler") Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions