diff options
author | Monam Agarwal <monamagarwal123@gmail.com> | 2014-03-22 07:58:10 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-19 15:12:29 +0200 |
commit | 3b63a43f1e04b935e1ce0383f78ac0f5c65433d8 (patch) | |
tree | 9530842d774d7001ac627c9662ee45d7a084a604 /arch/x86/kvm/vmx.c | |
parent | KVM: x86: raise invalid TSS exceptions during a task switch (diff) | |
download | linux-3b63a43f1e04b935e1ce0383f78ac0f5c65433d8.tar.xz linux-3b63a43f1e04b935e1ce0383f78ac0f5c65433d8.zip |
arch/x86: Use RCU_INIT_POINTER(x, NULL) in kvm/vmx.c
Here rcu_assign_pointer() is ensuring that the
initialization of a structure is carried out before storing a pointer
to that structure.
So, rcu_assign_pointer(p, NULL) can always safely be converted to
RCU_INIT_POINTER(p, NULL).
Signed-off-by: Monam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6a216e4762c7..cad37d57cc47 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -9097,7 +9097,7 @@ static void __exit vmx_exit(void) free_page((unsigned long)vmx_vmread_bitmap); #ifdef CONFIG_KEXEC - rcu_assign_pointer(crash_vmclear_loaded_vmcss, NULL); + RCU_INIT_POINTER(crash_vmclear_loaded_vmcss, NULL); synchronize_rcu(); #endif |