Merge commit 'perf/core' into perf/hw-breakpoint
Conflicts: kernel/Makefile kernel/trace/Makefile kernel/trace/trace.h samples/Makefile Merge reason: We need to be uptodate with the perf events development branch because we plan to rewrite the breakpoints API on top of perf events.
This commit is contained in:
@@ -1591,6 +1591,8 @@ static int kvm_dev_ioctl_get_supported_cpuid(struct kvm_cpuid2 *cpuid,
|
||||
|
||||
if (cpuid->nent < 1)
|
||||
goto out;
|
||||
if (cpuid->nent > KVM_MAX_CPUID_ENTRIES)
|
||||
cpuid->nent = KVM_MAX_CPUID_ENTRIES;
|
||||
r = -ENOMEM;
|
||||
cpuid_entries = vmalloc(sizeof(struct kvm_cpuid_entry2) * cpuid->nent);
|
||||
if (!cpuid_entries)
|
||||
|
Reference in New Issue
Block a user