Dennis Chen a6ccac4d47 platform/x86: ishtp_eclite: Fix ACPI device reference leak in probe error path
JIRA: https://redhat.atlassian.net/browse/RHEL-241103

Upstream status: v7.3

commit 62b57396c26a1ce54963709928ea0d01fa522eea
Author: Ma Ke <make_ruc2021@163.com>
Date:   Wed Jun 24 09:49:09 2026 +0800

    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>

(cherry picked from commit 62b57396c26a1ce54963709928ea0d01fa522eea)
Assisted-by: Patchpal
Signed-off-by: Dennis Chen <dechen@redhat.com>
2026-08-25 09:15:39 -04:00
2026-08-20 12:21:17 +00:00
2026-08-20 12:22:12 +00:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
S
Description
No description provided
Readme
2.8 GiB
Languages
C 97.6%
Assembly 1%
Shell 0.5%
Python 0.3%
Makefile 0.3%
Other 0.1%