diff for duplicates of <878s0funuy.fsf@linux.ibm.com> diff --git a/a/1.txt b/N1/1.txt index a7a8ac8..2cb5f32 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -27,7 +27,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 adbdb6d..a55827b 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -3,7 +3,7 @@ "ref\0a72edcd2-a990-a549-2f31-dab134bef6a6@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\0Thu, 02 Sep 2021 13:08:05 +0000\0" + "Date\0Thu, 02 Sep 2021 10:08:05 -0300\0" "To\0Alexey Kardashevskiy <aik@ozlabs.ru>" " linuxppc-dev@lists.ozlabs.org\0" "Cc\0kvm-ppc@vger.kernel.org\0" @@ -38,7 +38,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" @@ -64,4 +64,4 @@ ">>> \t\t\treturn -ENOMEM;\n" ">>> \t}" -5543d7cb7cdba496b2c424195d91c688dc75c6507745662c302973b7e5d59000 +63d7288a8794cc8a22b0f457dd1f4a27e92b21415f47d26785d4c9bb7e2796fe
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.