[PATCH 03/15] dc: the worker_ring_item condition make this case terminate loop

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

 



dpi_ring_item is changed but ignored

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/display-channel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index f19d3db..fc232fb 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -514,7 +514,7 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
                 dpi = SPICE_CONTAINEROF(dpi_ring_item, RedDrawablePipeItem, base);
                 for (;;) {
                     if (!worker_ring_item) {
-                        break;
+                        goto out_loop;
                     }
                     if (dpi && dcc == dpi->dcc) {
                         break;
@@ -534,6 +534,7 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
                                                  worker_ring_item);
                 }
             }
+out_loop:
             /* not sending other_drawable where possible */
             drawable_remove_from_pipes(other_drawable);
 
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]