aboutsummaryrefslogtreecommitdiff
path: root/rust/macros/paste.rs
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2024-01-03 20:27:06 +0100
committerHans de Goede <[email protected]>2024-01-22 11:34:30 +0100
commit3ea7f59af8ffa17ce5f5173d6f4bfbc73334187d (patch)
tree2d22b845f518be136f3572cf52f3b5fcfde2894f /rust/macros/paste.rs
parent3d8a29fec2cb96b3aa75a595f20c4b73ff294a97 (diff)
platform/x86: wmi: Decouple legacy WMI notify handlers from wmi_block_list
Until now, legacy WMI notify handler functions where using the wmi_block_list, 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. Tested on a Dell Inspiron 3505 and a Acer Aspire E1-731. Signed-off-by: Armin Wolf <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'rust/macros/paste.rs')
0 files changed, 0 insertions, 0 deletions