ACPI: configfs: Add missing config_item_put() to fix refcount leak
authorHanjun Guo <guohanjun@huawei.com>
Fri, 18 Sep 2020 09:13:28 +0000 (17:13 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Sep 2020 16:08:39 +0000 (18:08 +0200)
commit9a2e849fb6de471b82d19989a7944d3b7671793c
tree7238d5e34f5162406a4ecc7f5b32239420d53d4b
parentba4f184e126b751d1bffad5897f263108befc780
ACPI: configfs: Add missing config_item_put() to fix refcount leak

config_item_put() should be called in the drop_item callback, to
decrement refcount for the config item.

Fixes: 772bf1e2878ec ("ACPI: configfs: Unload SSDT on configfs entry removal")
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
[ rjw: Subject edit ]
Cc: 4.13+ <stable@vger.kernel.org> # 4.13+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_configfs.c