From 9e6979b67afdd8122a29135d752c6ea84e9af6dc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 19 Nov 2013 12:13:26 +0000 Subject: intel-virtual-output: Fix trivial and unlikely fd leak from bumblebee failure Signed-off-by: Chris Wilson --- tools/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/virtual.c b/tools/virtual.c index c3d7024c..ab4f12b6 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -1876,7 +1876,7 @@ static int bumblebee_open(struct context *ctx) DBG(("%s query result '%s'\n", __func__, buf)); if (strncmp(buf, "Value: ", 7)) - return -ECONNREFUSED; + goto err; len = 7; while (buf[len] != '\n' && buf[len] != '\0') -- cgit v1.2.3