mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 08:10:11 +01:00
added missing return fd (Alexander Stohr)
This commit is contained in:
parent
683fe4276a
commit
e04ed6376b
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue