[PATCH] kvm-tpr-opt: Fix instruction_is_ok() for push tpr

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

 



Missing break spotted by Coverity.

Signed-off-by: Markus Armbruster <armbru@xxxxxxxxxx>
---
 kvm-tpr-opt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kvm-tpr-opt.c b/kvm-tpr-opt.c
index 4b2bd47..14c4b36 100644
--- a/kvm-tpr-opt.c
+++ b/kvm-tpr-opt.c
@@ -152,6 +152,7 @@ static int instruction_is_ok(CPUState *env, uint64_t rip, int is_write)
         if (modrm_reg(b2) != 6 || !is_abs_modrm(b2))
             return 0;
         addr_offset = 2;
+        break;
     default:
 	return 0;
     }
-- 
1.7.6.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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