mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-10 22:44:30 +00:00
libdrm/lima: use sync-fd range beyond libc's reach
Sync file-descriptors a purely virtual and are not known by the libc and should be only accessed by 'drm_poll'. To prevent accidental access move them to range never used by the libc fd allocator. Issue #4760.
This commit is contained in:
parent
c0e98f4481
commit
b8d8ff6d4d
@ -769,7 +769,8 @@ class Lima::Call
|
||||
|
||||
public:
|
||||
|
||||
static constexpr int const SYNC_FD { 384 };
|
||||
/* arbitrary start value out of the libc's FD alloc range */
|
||||
static constexpr int const SYNC_FD { 10000 };
|
||||
|
||||
Call()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user