]> git.baikalelectronics.ru Git - kernel.git/commit
acpi, nfit: fix acpi_get_table leak
authorDan Williams <dan.j.williams@intel.com>
Mon, 3 Apr 2017 20:52:14 +0000 (13:52 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 13 Apr 2017 04:56:41 +0000 (21:56 -0700)
commit1d2f60394b2c12c5685dfdfbc0a71503cf5dcde4
tree9e230c6b46be7590278ed2c472afc23895d3c155
parente2e28a00b963643ac182246b3a2fc56490b6cd02
acpi, nfit: fix acpi_get_table leak

Calls to acpi_get_table() must be paired with acpi_put_table() to undo
the mapping established by acpi_tb_acquire_table().

It turns out this has no effect in practice since the NFIT will already
be mapped to support the /sys/firmware/acpi/tables/NFIT attribute in
sysfs.

Fixes: 64c9e8124941 ("ACPI / osl: Remove acpi_get_table_with_size()/early_acpi_os_unmap_memory() users")
Cc: Lv Zheng <lv.zheng@intel.com>
Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c