diff options
author | Qiang Yu <Qiang.Yu@amd.com> | 2016-09-14 16:59:38 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-09-15 15:15:06 +0900 |
commit | 380daff43cfefe2a8e4d496eaf65673f2815c878 (patch) | |
tree | 7d1c1819cc016fce6729eb245b7a924b5f595da8 /src/drmmode_display.c | |
parent | 4a5fa37f74c233c6b9c6a08306688628a8e216e8 (diff) |
Fix radeon_mode_hotplug crash on multi GPU platform.
On multi GPU platform, some screen is created by other GPU DDX.
Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
(Ported from amdgpu commit 978242977e5dc905e1d5a46b1b0d34b356c7af26)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 3aae69a8..a8d43865 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -2647,7 +2647,8 @@ restart_destroy: xf86CrtcConfigPtr loop_config = XF86_CRTC_CONFIG_PTR(loop_scrn); - if (RADEONEntPriv(loop_scrn) != pRADEONEnt) + if (strcmp(loop_scrn->driverName, scrn->driverName) || + RADEONEntPriv(loop_scrn) != pRADEONEnt) continue; for (j = 0; !found && j < loop_config->num_output; j++) { |