diff for duplicates of <87fsuouysc.fsf@linux.ibm.com> diff --git a/a/1.txt b/N1/1.txt index 274e535..d564b78 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -24,7 +24,7 @@ Alexey Kardashevskiy <aik@ozlabs.ru> writes: > @@ -4830,8 +4830,12 @@ static int kvmppc_core_prepare_memory_region_hv(struct kvm *kvm, > unsigned long npages = mem->memory_size >> PAGE_SHIFT; > -> if (change = KVM_MR_CREATE) { +> if (change == KVM_MR_CREATE) { > - slot->arch.rmap = vzalloc(array_size(npages, > - sizeof(*slot->arch.rmap))); > + unsigned long cb = array_size(npages, sizeof(*slot->arch.rmap)); diff --git a/a/content_digest b/N1/content_digest index 0078195..de403ab 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020210901084512.1658628-1-aik@ozlabs.ru\0" "From\0Fabiano Rosas <farosas@linux.ibm.com>\0" "Subject\0Re: [PATCH kernel] KVM: PPC: Book3S: Suppress warnings when allocating too big memory slots\0" - "Date\0Wed, 01 Sep 2021 14:59:47 +0000\0" + "Date\0Wed, 01 Sep 2021 11:59:47 -0300\0" "To\0Alexey Kardashevskiy <aik@ozlabs.ru>" " linuxppc-dev@lists.ozlabs.org\0" "Cc\0Alexey Kardashevskiy <aik@ozlabs.ru>" @@ -34,7 +34,7 @@ "> @@ -4830,8 +4830,12 @@ static int kvmppc_core_prepare_memory_region_hv(struct kvm *kvm,\n" "> \tunsigned long npages = mem->memory_size >> PAGE_SHIFT;\n" ">\n" - "> \tif (change = KVM_MR_CREATE) {\n" + "> \tif (change == KVM_MR_CREATE) {\n" "> -\t\tslot->arch.rmap = vzalloc(array_size(npages,\n" "> -\t\t\t\t\t sizeof(*slot->arch.rmap)));\n" "> +\t\tunsigned long cb = array_size(npages, sizeof(*slot->arch.rmap));\n" @@ -50,4 +50,4 @@ "> \t\t\treturn -ENOMEM;\n" "> \t}" -21d6f9ca4fd7bd5fb5975bbfde49e08f4e5cd21f99a854f9a22ca059ead4fc60 +e9cddc45dbc34403d89fdc77c0d3ec6f176616dff9493b2cd79d58c72072ad9a
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.