Message ID | 62c2afe5-4ab4-50b4-f876-9324bade6ef1@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | misc hardening and some cleanup | expand |
--- a/xen/common/efi/runtime.c +++ b/xen/common/efi/runtime.c @@ -571,7 +571,7 @@ int efi_runtime_call(struct xenpf_efi_ru return -EINVAL; size = op->u.get_next_variable_name.size; - name.raw = xmalloc_bytes(size); + name.raw = xzalloc_bytes(size); if ( !name.raw ) return -ENOMEM; if ( copy_from_guest(name.raw, op->u.get_next_variable_name.name,