diff options
author | Johan Hovold | 2021-12-01 14:25:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2021-12-21 10:14:53 +0100 |
commit | bb84e64f8fb3b1341eb75075219a1f060afe9895 (patch) | |
tree | 2aa53be65fb9b6a89e5b9548cf62c2dd052cb985 /drivers/firmware | |
parent | 433b7cd1e702b0918ef90cbf06c3da24313625d2 (diff) |
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>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/qemu_fw_cfg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c index f08e056ed0ae..b436342115af 100644 --- a/drivers/firmware/qemu_fw_cfg.c +++ b/drivers/firmware/qemu_fw_cfg.c @@ -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); } } |