Merge tag 'efi-fixes-for-v6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi
Pull EFI fix from Ard Biesheuvel: - Fix potential memory leak reported by kmemleak * tag 'efi-fixes-for-v6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: efivarfs: Fix memory leak of efivarfs_fs_info in fs_context error paths
This commit is contained in:
@@ -390,10 +390,16 @@ static int efivarfs_reconfigure(struct fs_context *fc)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void efivarfs_free(struct fs_context *fc)
|
||||
{
|
||||
kfree(fc->s_fs_info);
|
||||
}
|
||||
|
||||
static const struct fs_context_operations efivarfs_context_ops = {
|
||||
.get_tree = efivarfs_get_tree,
|
||||
.parse_param = efivarfs_parse_param,
|
||||
.reconfigure = efivarfs_reconfigure,
|
||||
.free = efivarfs_free,
|
||||
};
|
||||
|
||||
static int efivarfs_check_missing(efi_char16_t *name16, efi_guid_t vendor,
|
||||
|
||||
Reference in New Issue
Block a user