From 89e41d84ab6ff27e035dca8d9ef02c0ca692a4cb Mon Sep 17 00:00:00 2001 From: brianp Date: Mon, 25 Nov 2002 16:03:20 +0000 Subject: added missing return fd (Alexander Stohr) --- xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3