diff options
author | Zenghui Yu <yuzenghui@huawei.com> | 2021-09-06 11:35:41 +0800 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-10-13 13:41:16 +0300 |
commit | 82a59c7f456db9f2874e9f1e9cb4cc19e71e95c5 (patch) | |
tree | 7b661e8e40e554a09c2d45d3d112c900a8887266 /drivers/ps3 | |
parent | af628cdd64e11f03181a5a19645768ed4687bda4 (diff) | |
download | linux-82a59c7f456db9f2874e9f1e9cb4cc19e71e95c5.tar.gz linux-82a59c7f456db9f2874e9f1e9cb4cc19e71e95c5.tar.bz2 linux-82a59c7f456db9f2874e9f1e9cb4cc19e71e95c5.zip |
drm/i915: Free the returned object of acpi_evaluate_dsm()
As per the comment on top of acpi_evaluate_dsm():
| * Evaluate device's _DSM method with specified GUID, revision id and
| * function number. Caller needs to free the returned object.
We should free the returned object of acpi_evaluate_dsm() to avoid memory
leakage. Otherwise the kmemleak splat will be triggered at boot time (if we
compile kernel with CONFIG_DEBUG_TEST_DRIVER_REMOVE=y).
Fixes: 8e55f99c510f ("drm/i915: Invoke another _DSM to enable MUX on HP Workstation laptops")
Cc: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210906033541.862-1-yuzenghui@huawei.com
(cherry picked from commit 149ac2e7ae1845191bd18b66a725392ac83a0c47)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/ps3')
0 files changed, 0 insertions, 0 deletions