diff options
author | Armin Wolf <[email protected]> | 2023-10-20 23:10:02 +0200 |
---|---|---|
committer | Ilpo Järvinen <[email protected]> | 2023-10-25 12:46:36 +0300 |
commit | 7444f8347487df8d898fbc022249942806c80fc9 (patch) | |
tree | ecfdb0045aba89851a7d0b908972f23d0267ba41 /tools/perf/util/trace-event-scripting.c | |
parent | 4186a47dbfbce2f97b0c025a7eac32bb5130df05 (diff) |
platform/x86: wmi: Fix refcounting of WMI devices in legacy functions
Until now, legacy GUID-based functions where using find_guid() when
searching for WMI devices, which did no refcounting on the returned
WMI device. This meant that the WMI device could disappear at any
moment, potentially leading to various errors. Fix this by using
bus_find_device() which returns an actual reference to the found
WMI device.
Signed-off-by: Armin Wolf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions