diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-12-22 21:34:52 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-12-22 21:34:52 +0000 |
commit | ea886971f42bb44793b0ed08ee7f21f4ff046d18 (patch) | |
tree | ef5727e4a42316c8cff4be0aa30088969c5a9c7e /lib/libdrm | |
parent | efbc0f59846370c760ca24ede43250e5f8a69b53 (diff) |
Do not remove(3) the device entry if open fails. ok oga@
Diffstat (limited to 'lib/libdrm')
-rw-r--r-- | lib/libdrm/xf86drm.c | 2 |
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; } |