mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 12:48:05 +02:00
libkms: return -EINVAL on fstat error
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>
This commit is contained in:
parent
1f4b5e11e6
commit
baf0a7daaf
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue