mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-09 01:30:28 +01:00
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:
parent
8928f8fa0b
commit
4d7052bd7b
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue