KVM: MMU: fix wrong not write protected sp report
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Sat, 28 Aug 2010 11:22:46 +0000 (19:22 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:47 +0000 (10:51 +0200)
The audit code reports some sp not write protected in current code, it's just the
bug in audit_write_protection(), since:

- the invalid sp not need write protected
- using uninitialize local variable('gfn')
- call kvm_mmu_audit() out of mmu_lock's protection

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found