[libvirt] [PATCH] qemu_process: spice: don't release used port

Pavel Hrdina posted 1 patch 7 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/c23b7b81db58c61b0adc98095dca7bfbad74fa79.1487926701.git.phrdina@redhat.com
src/qemu/qemu_process.c | 1 -
1 file changed, 1 deletion(-)
[libvirt] [PATCH] qemu_process: spice: don't release used port
Posted by Pavel Hrdina 7 years, 2 months ago
The port is stored in graphics configuration and it will
also get released in qemuProcessStop in case of error.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1397440

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
 src/qemu/qemu_process.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index df1fa0371d..760507d957 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -3693,7 +3693,6 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver,
     ret = 0;
 
  cleanup:
-    virPortAllocatorRelease(driver->remotePorts, port);
     virObjectUnref(cfg);
     return ret;
 }
-- 
2.11.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] qemu_process: spice: don't release used port
Posted by Martin Kletzander 7 years, 2 months ago
On Fri, Feb 24, 2017 at 09:58:31AM +0100, Pavel Hrdina wrote:
>The port is stored in graphics configuration and it will
>also get released in qemuProcessStop in case of error.
>
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1397440
>
>Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
>---
> src/qemu/qemu_process.c | 1 -
> 1 file changed, 1 deletion(-)
>

Nice how one removed line fixes two different issues :)

ACK

>diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
>index df1fa0371d..760507d957 100644
>--- a/src/qemu/qemu_process.c
>+++ b/src/qemu/qemu_process.c
>@@ -3693,7 +3693,6 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver,
>     ret = 0;
>
>  cleanup:
>-    virPortAllocatorRelease(driver->remotePorts, port);
>     virObjectUnref(cfg);
>     return ret;
> }
>--
>2.11.1
>
>--
>libvir-list mailing list
>libvir-list@redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list