OSDN Git Service

arch/x86: Use RCU_INIT_POINTER(x, NULL) in kvm/vmx.c
authorMonam Agarwal <monamagarwal123@gmail.com>
Sat, 22 Mar 2014 06:58:10 +0000 (12:28 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Aug 2014 13:12:29 +0000 (15:12 +0200)
commit3b63a43f1e04b935e1ce0383f78ac0f5c65433d8
tree9530842d774d7001ac627c9662ee45d7a084a604
parent15fc075269e42230605343554c5c8001eb819228
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>
arch/x86/kvm/vmx.c