Fix error handling in msix vector add
commitaca6915d92743b11ac5555d6e412cc4737f27f34
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 23 Jul 2009 13:34:13 +0000 (23 16:34 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 3 Aug 2009 15:09:45 +0000 (3 18:09 +0300)
treeaf7a77efc3e3b85bdc32d7a265910d15a65887d5
parent1e801b7a910f9d9e6eef5cdab5fc7f9901f36ff6
Fix error handling in msix vector add

When adding a vector fails, the used counter should
not be incremented, otherwise on vector change we will
try to update the routing entry.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/msix.c