summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-19 12:13:26 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-19 12:13:26 +0000
commit9e6979b67afdd8122a29135d752c6ea84e9af6dc (patch)
tree770dcc1098d096f9c6aafe1e12e72abaef85588f /tools
parent9ed5f83fe7ec71faf40147271aef1cf4a5a38329 (diff)
intel-virtual-output: Fix trivial and unlikely fd leak from bumblebee failure
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c2
1 files changed, 1 insertions, 1 deletions
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')