summaryrefslogtreecommitdiff
path: root/kvm.c
diff options
context:
space:
mode:
authorMax Bruning <max@joyent.com>2011-07-07 08:11:08 -0700
committerMax Bruning <max@joyent.com>2011-07-07 08:11:08 -0700
commita3988e79c12226cbd2833896be1a36328e59384c (patch)
tree233ce6ac5b0a0697fb593be4b3b19721dbca6078 /kvm.c
parentad53e677f49480dc231dda42776fe9da67ebc5b6 (diff)
downloadillumos-kvm-a3988e79c12226cbd2833896be1a36328e59384c.tar.gz
HVM-472 panic in gfn_to_memslot_unaliased
Diffstat (limited to 'kvm.c')
-rw-r--r--kvm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvm.c b/kvm.c
index a5ed95d..7c7ade4 100644
--- a/kvm.c
+++ b/kvm.c
@@ -1074,9 +1074,10 @@ gfn_to_memslot_unaliased(struct kvm *kvm, gfn_t gfn)
#ifdef XXX_KVM_DECLARATION
struct kvm_memslots *slots = rcu_dereference(kvm->memslots);
#else
- struct kvm_memslots *slots = kvm->memslots;
+ struct kvm_memslots *slots;
mutex_enter(&kvm->memslots_lock);
+ slots = kvm->memslots;
#endif
for (i = 0; i < slots->nmemslots; ++i) {