diff options
author | Bryce Harrington <bryce@canonical.com> | 2013-03-19 12:12:41 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-08 09:12:53 -0700 |
commit | 4d7052bd7bbf49b573dc4d34ad14e7f058a0d884 (patch) | |
tree | 8044ced3b6fef70e82f3910dbe63f629c8270ff9 | |
parent | 8928f8fa0bb154ce437af703ff702016f0dcf127 (diff) |
xfree86: (Cleanup) Close fd if drm interface 1.4 could not be set.
Signed-off-by: Bryce Harrington <bryce@canonical.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | hw/xfree86/os-support/linux/lnx_platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xfree86/os-support/linux/lnx_platform.c b/hw/xfree86/os-support/linux/lnx_platform.c index 76f5583dd..69a5b8c36 100644 --- a/hw/xfree86/os-support/linux/lnx_platform.c +++ b/hw/xfree86/os-support/linux/lnx_platform.c @@ -34,6 +34,7 @@ get_drm_info(struct OdevAttributes *attribs, char *path) sv.drm_dd_minor = -1; /* Don't care */ if (drmSetInterfaceVersion(fd, &sv)) { ErrorF("setversion 1.4 failed\n"); + close(fd); return FALSE; } |