firmware: qemu_fw_cfg: remove sysfs entries explicitly

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071830
Depends: https://bugzilla.redhat.com/show_bug.cgi?id=2071840
Tested: This is one of a series of patch sets to enable Arm SystemReady IR
 support in the kernel for NXP i.MX8 platforms.  At this stage, this
 has been tested by ensuring we can survive the CI/CD loop -- i.e.,
 that we have not broken anything else, and a simple boot test.  When
 sufficient drivers have been brought in for i.MX8M, we will be able
 to run further tests.

commit bb84e64f8fb3b1341eb75075219a1f060afe9895
Author: Johan Hovold <johan@kernel.org>
Date:   Wed Dec 1 14:25:28 2021 +0100

    firmware: qemu_fw_cfg: remove sysfs entries explicitly

    Explicitly remove the file entries from sysfs before dropping the final
    reference for symmetry reasons and for consistency with the rest of the
    driver.

    Signed-off-by: Johan Hovold <johan@kernel.org>
    Link: https://lore.kernel.org/r/20211201132528.30025-5-johan@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    (cherry picked from commit bb84e64f8fb3b1341eb75075219a1f060afe9895)

Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
Al Stone 2022-07-09 12:30:43 -06:00
parent 6aaf400571
commit 0c768058cb
1 changed files with 1 additions and 0 deletions

View File

@ -389,6 +389,7 @@ static void fw_cfg_sysfs_cache_cleanup(void)
list_for_each_entry_safe(entry, next, &fw_cfg_entry_cache, list) {
fw_cfg_sysfs_cache_delist(entry);
kobject_del(&entry->kobj);
kobject_put(&entry->kobj);
}
}