[bug report] KVM: SVM: Add intercept checks for SVM instructions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Joerg Roedel,

The patch 01de8b09e606: "KVM: SVM: Add intercept checks for SVM
instructions" from Apr 4, 2011, leads to the following static checker
warning:

	arch/x86/kvm/emulate.c:4180 check_svme()
	error: uninitialized symbol 'efer'.

arch/x86/kvm/emulate.c
  4174  static int check_svme(struct x86_emulate_ctxt *ctxt)
  4175  {
  4176          u64 efer;
  4177  
  4178          ctxt->ops->get_msr(ctxt, MSR_EFER, &efer);

The "efer" variable could be uninitialized if ->get_msr() returns false.

  4179  
  4180          if (!(efer & EFER_SVME))
  4181                  return emulate_ud(ctxt);
  4182  
  4183          return X86EMUL_CONTINUE;
  4184  }


regards,
dan carpenter



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux