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:
Josef Söntgen 2022-12-14 14:09:24 +01:00 committed by Christian Helmuth
parent c0e98f4481
commit b8d8ff6d4d

View File

@ -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()
{