Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Rings:1-MinimalX
xorg-x11-server
U_modesetting-set-driverPrivate-to-Null-after-c...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_modesetting-set-driverPrivate-to-Null-after-closing-fd.patch of Package xorg-x11-server
Git-commit: a41a171bcbae9aeafac2865faa904f15d9b59925 Author: Dave Airlie <airlied@gmail.com> Subject: [PATCH] modesetting: set driverPrivate to NULL after closing fd. Patch-Mainline: Upstream References: bnc#1011570 Signed-off-by: Michal Srb <msrb@suse.com> 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> diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index c97f33a..abf7e1a 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++ b/hw/xfree86/drivers/modesetting/driver.c @@ -635,7 +635,6 @@ FreeRec(ScrnInfoPtr pScrn) ms = modesettingPTR(pScrn); if (!ms) return; - pScrn->driverPrivate = NULL; if (ms->fd > 0) { modesettingEntPtr ms_ent; @@ -656,6 +655,7 @@ FreeRec(ScrnInfoPtr pScrn) ms_ent->fd = 0; } } + pScrn->driverPrivate = NULL; free(ms->drmmode.Options); free(ms);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor