mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 13:28:08 +02:00
modesetting: set driverPrivate to NULL after closing fd.
Otherwise ms_ent_priv will return NULL and things will fall apart.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit a41a171bcb)
This commit is contained in:
parent
cbbf4b0da0
commit
5b4ced6d3a
1 changed files with 1 additions and 1 deletions
|
|
@ -624,7 +624,6 @@ FreeRec(ScrnInfoPtr pScrn)
|
|||
ms = modesettingPTR(pScrn);
|
||||
if (!ms)
|
||||
return;
|
||||
pScrn->driverPrivate = NULL;
|
||||
|
||||
if (ms->fd > 0) {
|
||||
modesettingEntPtr ms_ent;
|
||||
|
|
@ -645,6 +644,7 @@ FreeRec(ScrnInfoPtr pScrn)
|
|||
ms_ent->fd = 0;
|
||||
}
|
||||
}
|
||||
pScrn->driverPrivate = NULL;
|
||||
free(ms->drmmode.Options);
|
||||
free(ms);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue