Skip to contentSkip to conversation

kvm/x86 : Replace BUG_ON(1) with BUG()

PATCH New Peng Hao 1 participant 1 message Nov 7, 2019

Subsystems (3)
lore
Share & tools
lore

Peng Hao

author
#0 lore raw

PATCH 1/1 kvm/x86 : Replace BUG_ON(1) with BUG()

---
 arch/x86/kvm/vmx/nested.c | 3 +--

 1 file changed, 1 insertion(+), 2 deletions(-)
arch/x86/kvm/vmx/nested.c +0 -0
index e76eb4f..d0e6c40 100644
@@ -4945,8 +4945,7 @@ static int handle_invept(struct kvm_vcpu *vcpu)

  */
  break;
  default:
- BUG_ON(1);
- break;
+ BUG();
  }

  return nested_vmx_succeed(vcpu);
--
2.7.4