summaryrefslogtreecommitdiff
path: root/lib/libdrm
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-12-22 21:34:52 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-12-22 21:34:52 +0000
commitea886971f42bb44793b0ed08ee7f21f4ff046d18 (patch)
treeef5727e4a42316c8cff4be0aa30088969c5a9c7e /lib/libdrm
parentefbc0f59846370c760ca24ede43250e5f8a69b53 (diff)
Do not remove(3) the device entry if open fails. ok oga@
Diffstat (limited to 'lib/libdrm')
-rw-r--r--lib/libdrm/xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdrm/xf86drm.c b/lib/libdrm/xf86drm.c
index 7c3bb3929..79313ed28 100644
--- a/lib/libdrm/xf86drm.c
+++ b/lib/libdrm/xf86drm.c
@@ -293,7 +293,7 @@ static int drmOpenDevice(long dev, int minor, int type)
return fd;
drmMsg("drmOpenDevice: Open failed\n");
- remove(buf);
+
return -errno;
}