|
|
@@ -83,8 +83,7 @@ static int read_efi_var(const char *name, unsigned long *size,
|
|
|
if (!efi_enabled(EFI_RUNTIME_SERVICES))
|
|
|
return -EOPNOTSUPP;
|
|
|
|
|
|
- uni_name = kzalloc(sizeof(efi_char16_t) * (strlen(name) + 1),
|
|
|
- GFP_KERNEL);
|
|
|
+ uni_name = kcalloc(strlen(name) + 1, sizeof(efi_char16_t), GFP_KERNEL);
|
|
|
temp_buffer = kzalloc(EFI_DATA_SIZE, GFP_KERNEL);
|
|
|
|
|
|
if (!uni_name || !temp_buffer) {
|