diff --git a/fs/efivarfs/super.c b/fs/efivarfs/super.c index ddbce42548c9fb6c6e496b609c1fb05beb98c944..acf9a67f6770940170889b9bb058e88272396d9f 100644 --- a/fs/efivarfs/super.c +++ b/fs/efivarfs/super.c @@ -121,7 +121,7 @@ static int efivarfs_callback(efi_char16_t *name16, efi_guid_t vendor, int len, i; int err = -ENOMEM; - entry = kmalloc(sizeof(*entry), GFP_KERNEL); + entry = kzalloc(sizeof(*entry), GFP_KERNEL); if (!entry) return err;