From 44b5912ffcf8dcf4b4b8d3518dd0b62a284f6ee4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 18 Jun 2014 14:48:33 +0100 Subject: sna/gen8: Fix cleanup after failing to convert channel Signed-off-by: Chris Wilson --- src/sna/gen8_render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c index 26a3579d..7fd37c1d 100644 --- a/src/sna/gen8_render.c +++ b/src/sna/gen8_render.c @@ -2306,7 +2306,7 @@ gen8_render_composite(struct sna *sna, return true; if (!gen8_composite_channel_convert(&tmp->src)) - goto cleanup_dst; + goto cleanup_src; break; } @@ -2353,7 +2353,7 @@ gen8_render_composite(struct sna *sna, /* fall through to fixup */ case 1: if (!gen8_composite_channel_convert(&tmp->mask)) - goto cleanup_src; + goto cleanup_mask; break; } } @@ -2588,7 +2588,7 @@ gen8_render_composite_spans(struct sna *sna, /* fall through to fixup */ case 1: if (!gen8_composite_channel_convert(&tmp->base.src)) - goto cleanup_dst; + goto cleanup_src; break; } tmp->base.mask.bo = NULL; -- cgit v1.2.3