mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Enrico Weigelt
parent
4aa6d3e4fd
commit
77830f2284
@@ -159,7 +159,7 @@ static const OptionInfoRec Options[] = {
|
||||
|
||||
int ms_entity_index = -1;
|
||||
|
||||
DevPrivateKeyRec asyncFlipPrivateKeyRec;
|
||||
static DevPrivateKeyRec asyncFlipPrivateKeyRec;
|
||||
|
||||
static MODULESETUPPROTO(Setup);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user