Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 632372 Details for
Bug 716574
=x11-libs/libdrm-2.4.101: breaks firefox WebGL with intel i965 and iris DRI driver
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
workaround patch
paste_1139834 (text/plain), 1.04 KB, created by
Matt Turner
on 2020-04-12 06:34:12 UTC
(
hide
)
Description:
workaround patch
Filename:
MIME Type:
Creator:
Matt Turner
Created:
2020-04-12 06:34:12 UTC
Size:
1.04 KB
patch
obsolete
>From 471d63ac170e2a2c6dcfb3656aa7d1e9a4b2029c Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@linux.intel.com> >Date: Sun, 12 Apr 2020 00:08:52 +0300 >Subject: [PATCH] fix realpath vs. firefox > >--- > xf86drm.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/xf86drm.c b/xf86drm.c >index d240f95b6d08..76e415c72de4 100644 >--- a/xf86drm.c >+++ b/xf86drm.c >@@ -3011,9 +3011,11 @@ static int drmParseSubsystemType(int maj, int min) > snprintf(path, sizeof(path), "/sys/dev/char/%d:%d/device", maj, min); > if (!realpath(path, real_path)) > return -errno; >- snprintf(path, sizeof(path), "%s", real_path); >- >- subsystem_type = get_subsystem_type(path); >+ subsystem_type = get_subsystem_type(real_path); >+ if (subsystem_type >= 0) >+ memcpy(path, real_path, sizeof(path)); >+ else >+ subsystem_type = get_subsystem_type(path); > if (subsystem_type == DRM_BUS_VIRTIO) { > strncat(path, "/..", PATH_MAX); > subsystem_type = get_subsystem_type(path); >-- >2.24.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 716574
: 632372