diff options
author | 2025-02-12 14:30:58 -0500 | |
---|---|---|
committer | 2025-02-18 20:03:37 +0100 | |
commit | d403120cb9d4787b283ea202b2162f459d18fe9d (patch) | |
tree | 776cd9f51133bdf3cb2fcf509dda6d810d30eb89 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.14-rc3 (diff) | |
download | wireguard-linux-d403120cb9d4787b283ea202b2162f459d18fe9d.tar.xz wireguard-linux-d403120cb9d4787b283ea202b2162f459d18fe9d.zip |
ACPI: platform_profile: Fix memory leak in profile_class_is_visible()
If class_find_device() finds a device, it's reference count is
incremented.
Call put_device() to drop this reference before returning.
Fixes: 77be5cacb2c2 ("ACPI: platform_profile: Create class for ACPI platform profile")
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://patch.msgid.link/20250212193058.32110-1-kuurtb@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions