mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
graphics/libdrm: fix drmGetNodeTypeFromFd
Fix drmGetNodeTypeFromFd, this should have been part of r505441 PR: 236933 Submitted by: jbeich Reviewed by: manu
This commit is contained in:
parent
ebdf3d40d7
commit
eecc23f036
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505442
@ -310,7 +310,7 @@
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ int type = drmGetNodeType(name);
|
||||
+ int type = drmGetNodeType(strrchr(name, '/') + 1);
|
||||
+ free(name);
|
||||
+ if (type < 0)
|
||||
+ errno = ENODEV;
|
||||
|
Loading…
Reference in New Issue
Block a user