diff options
| author | Ma Ke <make_ruc2021@163.com> | 2026-06-24 09:49:09 +0800 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-07-09 16:44:10 +0300 |
| commit | 62b57396c26a1ce54963709928ea0d01fa522eea (patch) | |
| tree | 7b59fabdf0ba57e1f877e1226fb0382c736c513b /usr | |
| parent | 14deb40886e3f98b335eff9da598c3ead98b9225 (diff) | |
| download | linux-next-62b57396c26a1ce54963709928ea0d01fa522eea.tar.gz linux-next-62b57396c26a1ce54963709928ea0d01fa522eea.zip | |
platform/x86: ishtp_eclite: Fix ACPI device reference leak in probe error path
ecl_ishtp_cl_probe() acquires a reference to an ACPI device via
acpi_find_eclite_device() but fails to release it in the error path
when acpi_opregion_init() fails. This results in a reference count
leak, preventing proper cleanup of the ACPI device.
Calling path: acpi_find_eclite_device() ->
acpi_dev_get_first_match_dev() -> acpi_dev_get_next_match_dev() ->
bus_find_device() -> get_device().
Found by code review.
Signed-off-by: Ma Ke <make_ruc2021@163.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: stable@vger.kernel.org
Fixes: 7b6bf51de974 ("platform/x86: Add Intel ishtp eclite driver")
Link: https://patch.msgid.link/20260624014910.1226446-1-make_ruc2021@163.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions
