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>
This commit is contained in:
Bryce Harrington 2013-03-19 12:12:41 -07:00 committed by Keith Packard
parent 8928f8fa0b
commit 4d7052bd7b

View File

@ -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;
}