mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
EFI fixes for v6.16 #2
- Fix potential memory leak reported by kmemleak -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQQm/3uucuRGn1Dmh0wbglWLn0tXAUCaHwZPQAKCRAwbglWLn0t XJCYAQDd9Nwa4HAXBrcfAhZNqTQYOYZCdPr0tpULvlHGmPMEvAD/fKoD8dr/D3ev q/bhjAF3G+9QFvrcCUXcSuDHevXfewo= =aUfb -----END PGP SIGNATURE----- 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:
commit
f4a40a4282
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user