]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: PPC: Remove extra get_page() to fix page refcount leak
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:24:15 +0000 (11:24 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 17:00:49 +0000 (13:00 -0400)
commit17b7dbaf183e9cc131bbf5311db8202d323aa667
tree3bc82296f7c2b5b6b8fbc9b989017d0753eff8db
parent7e8f1aa59d0b6c6ac2d539008d452357c52773c3
KVM: PPC: Remove extra get_page() to fix page refcount leak

Don't manually do get_page() when patching dcbz, as gfn_to_page() gifts
the caller a reference.  I.e. doing get_page() will leak the page due to
not putting all references.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-74-seanjc@google.com>
arch/powerpc/kvm/book3s_pr.c