projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4b5e1
)
libkms: return -EINVAL on fstat error
author
Maxime Villard
<rustyBSD@gmx.fr>
Wed, 2 Jan 2013 15:57:07 +0000
(10:57 -0500)
committer
Jerome Glisse
<jglisse@redhat.com>
Wed, 2 Jan 2013 15:57:07 +0000
(10:57 -0500)
On error fstat return -1, instead return -EINVAL to caller
Signed-off-by: Maxime Villard <rustyBSD@gmx.fr>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
libkms/linux.c
patch
|
blob
|
history
diff --git
a/libkms/linux.c
b/libkms/linux.c
index
fc4f205
..
eec0162
100644
(file)
--- a/
libkms/linux.c
+++ b/
libkms/linux.c
@@
-68,7
+68,7
@@
linux_name_from_sysfs(int fd, char **out)
ret = fstat(fd, &buffer);
if (ret)
- return
ret
;
+ return
-EINVAL
;
if (!S_ISCHR(buffer.st_mode))
return -EINVAL;