diff options
author | Jean Delvare <jdelvare@suse.de> | 2022-06-22 08:37:43 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-06-29 21:35:44 +0200 |
commit | 8ad59b397f86a4d8014966fdc0552095a0c4fb2b (patch) | |
tree | c104a207bd63d2ec6397d398e3ffb9350515126a /include/acpi/cppc_acpi.h | |
parent | 03c765b0e3b4cb5063276b086c76f7a612856a9a (diff) |
i2c: piix4: Fix a memory leak in the EFCH MMIO support
The recently added support for EFCH MMIO regions introduced a memory
leak in that code path. The leak is caused by the fact that
release_resource() merely removes the resource from the tree but does
not free its memory. We need to call release_mem_region() instead,
which does free the memory. As a nice side effect, this brings back
some symmetry between the legacy and MMIO paths.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Reviewed-by: Terry Bowman <terry.bowman@amd.com>
Tested-by: Terry Bowman <Terry.Bowman@amd.com>
Fixes: 7c148722d074 ("i2c: piix4: Add EFCH MMIO support to region request and release")
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'include/acpi/cppc_acpi.h')
0 files changed, 0 insertions, 0 deletions