]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit2065b3727ecdb64450597d70f7e13af00b85dbd8
treecbfcc78359c7738ee748569bbc6eec39f17a8784
parent2d2a7b9cff7f6324e69daa3ab76799641a94a0e8
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