summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrianp <brianp>2002-11-25 16:03:20 +0000
committerbrianp <brianp>2002-11-25 16:03:20 +0000
commit89e41d84ab6ff27e035dca8d9ef02c0ca692a4cb (patch)
treeaa309a8cf5b8fbecd26f769c10756cc141e25050
parent909de4afb1a1d2676177188b0bec09e309b855a4 (diff)
added missing return fd (Alexander Stohr)trunk-20021125
-rw-r--r--xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c
index 0532a1ece..6c830664b 100644
--- a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c
+++ b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c
@@ -245,6 +245,7 @@ static int drmOpenDevice(long dev, int minor)
fd = open(buf, O_RDWR, 0);
drmMsg("drmOpenDevice: open result is %d, (%s)\n",
fd, fd < 0 ? strerror(errno) : "OK");
+ if (fd >= 0) return fd;
drmMsg("drmOpenDevice: Open failed\n");
remove(buf);