Fix error handling in msix vector addqemu-0.10.91-0.10.rc1.fc12
commit057fb1b4b227bc49aa00b08da5f177b50c020693
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 23 Jul 2009 13:34:13 +0000 (23 16:34 +0300)
committerMark McLoughlin <markmc@redhat.com>
Mon, 7 Sep 2009 06:56:08 +0000 (7 07:56 +0100)
tree4dcf5b8c6b53ef77573ffb0cb6aed32e201273d4
parent01c3198a8f0d933c9b219acaf087c675d729bbf7
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.

(cherry picked from commit aca6915d92743b11ac5555d6e412cc4737f27f34)

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Fedora-patch: qemu-fix-msix-error-handling-on-older-kernels.patch
hw/msix.c