From cc84c839450b7089e8f9e3790d0a5718ced70e44 Mon Sep 17 00:00:00 2001 From: matthieu Date: Wed, 22 Dec 2010 21:34:51 +0000 Subject: [PATCH] Do not remove(3) the device entry if open fails. ok oga@ --- lib/libdrm/xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }