mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-15 05:23:40 +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:
parent
4aa6d3e4fd
commit
77830f2284
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ static const OptionInfoRec Options[] = {
|
|||
|
||||
int ms_entity_index = -1;
|
||||
|
||||
DevPrivateKeyRec asyncFlipPrivateKeyRec;
|
||||
static DevPrivateKeyRec asyncFlipPrivateKeyRec;
|
||||
|
||||
static MODULESETUPPROTO(Setup);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue