<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - random tab crashes in firefox nightly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107384#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - random tab crashes in firefox nightly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107384">bug 107384</a>
from <span class="vcard"><a class="email" href="mailto:haagch@frickel.club" title="Christoph Haag <haagch@frickel.club>"> <span class="fn">Christoph Haag</span></a>
</span></b>
<pre>(In reply to Chris Wilson from <a href="show_bug.cgi?id=107384#c5">comment #5</a>)
<span class="quote">> Sigh.
>
> diff --git a/src/loader/loader.c b/src/loader/loader.c
> index 43275484cc..87b7281f78 100644
> --- a/src/loader/loader.c
> +++ b/src/loader/loader.c
> @@ -274,7 +274,7 @@ int loader_get_user_preferred_fd(int default_fd, bool
> *different_device)
> static int
> drm_get_pci_id_for_fd(int fd, int *vendor_id, int *chip_id)
> {
> - drmDevicePtr device;
> + drmDevicePtr device = NULL;
> int ret;
>
> if (drmGetDevice2(fd, 0, &device) == 0) {</span >
Thanks, looks like this is my issue too.
diff --git a/src/loader/loader.c b/src/loader/loader.c
index 43275484cc2..02a1f97684f 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -167,7 +167,7 @@ static bool drm_device_matches_tag(drmDevicePtr device,
const char *prime_tag)
static char *drm_get_id_path_tag_for_fd(int fd)
{
- drmDevicePtr device;
+ drmDevicePtr device = NULL;
char *tag;
if (drmGetDevice2(fd, 0, &device) != 0)
@@ -274,7 +274,7 @@ int loader_get_user_preferred_fd(int default_fd, bool
*different_device)
static int
drm_get_pci_id_for_fd(int fd, int *vendor_id, int *chip_id)
{
- drmDevicePtr device;
+ drmDevicePtr device = NULL;
int ret;
if (drmGetDevice2(fd, 0, &device) == 0) {</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>