diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-19 12:13:26 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-19 12:13:26 +0000 |
commit | 9e6979b67afdd8122a29135d752c6ea84e9af6dc (patch) | |
tree | 770dcc1098d096f9c6aafe1e12e72abaef85588f /tools | |
parent | 9ed5f83fe7ec71faf40147271aef1cf4a5a38329 (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.c | 2 |
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') |