modesetting: make DevPrivateKeyRec struct static

dixRegisterPrivateKey() assumes that DevPrivateKeyRec struct passed
to it is zero-filled before the first use, otherwise assert() fails.
Therefore these structs are usually static, which assures that they
are initialized to 0. A newly introduced key in the modesetting driver
was not static, and the driver crashed. This should be corrected.

Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
This commit is contained in:
Oleh Nykyforchyn
2025-11-22 14:01:48 +02:00
committed by Enrico Weigelt
parent 4aa6d3e4fd
commit 77830f2284

View File

@@ -159,7 +159,7 @@ static const OptionInfoRec Options[] = {
int ms_entity_index = -1;
DevPrivateKeyRec asyncFlipPrivateKeyRec;
static DevPrivateKeyRec asyncFlipPrivateKeyRec;
static MODULESETUPPROTO(Setup);