config_item_put() should be called to decrement refcount for item in the drop_item callback. Signed-off-by: Hanjun Guo <guohanjun@xxxxxxxxxx> --- drivers/acpi/acpi_configfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/acpi_configfs.c b/drivers/acpi/acpi_configfs.c index 21160a3..4473611 100644 --- a/drivers/acpi/acpi_configfs.c +++ b/drivers/acpi/acpi_configfs.c @@ -225,6 +225,7 @@ static void acpi_table_drop_item(struct config_group *group, pr_info("Host-directed Dynamic ACPI Table Unload\n"); acpi_unload_table(table->index); + config_item_put(cfg); } static struct configfs_group_operations acpi_table_group_ops = { -- 1.7.12.4