]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Fix potential memory leak with smp real-mode
authorIzik Eidus <izike@qumranet.com>
Tue, 20 Nov 2007 09:30:04 +0000 (11:30 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:08 +0000 (17:53 +0200)
commit4ad87ae37a608f9979c37c3be681934c5b1546f5
treecbfcc78359c7738ee748569bbc6eec39f17a8784
parent03685931c17850a2168b9fcac4e3056b3907f374
KVM: MMU: Fix potential memory leak with smp real-mode

When we map a page, we check whether some other vcpu mapped it for us and if
so, bail out.  But we should decrease the refcount on the page as we do so.

Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c