<div dir="ltr"><div>I've created a bug here <a href="https://bugs.freedesktop.org/show_bug.cgi?id=94562" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=94562</a><br><br></div><br>From 5cbdcc9e099d8da4e5a27aa9049029d98dbaf32c Mon Sep 17 00:00:00 2001<br>From: =?UTF-8?q?Wang=20Xin-yu=20=28=E7=8E=8B=E6=98=95=E5=AE=87=29?=<br> <<a href="mailto:comicfans44@gmail.com" target="_blank">comicfans44@gmail.com</a>><br>Date: Wed, 16 Mar 2016 11:57:06 +0000<br>Subject: [PATCH] current_mode already points to struct, memcmp takes its<br> address incorrectly<br><br><a href="https://bugs.freedesktop.org/show_bug.cgi?id=94562" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=94562</a><br>---<br> src/compositor-drm.c | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/src/compositor-drm.c b/src/compositor-drm.c<br>index e01f6b9..621414c 100644<br>--- a/src/compositor-drm.c<br>+++ b/src/compositor-drm.c<br>@@ -2212,7 +2212,7 @@ drm_output_choose_initial_mode(struct drm_output *output,<br>                    height == drm_mode->base.height)<br>                        configured = drm_mode;<br> <br>-               if (memcmp(&current_mode, &drm_mode->mode_info,<br>+               if (memcmp(current_mode, &drm_mode->mode_info,<br>                           sizeof *current_mode) == 0)<br>                        current = drm_mode;<div class=""><div id=":lz" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><span class=""><font color="#888888"><br> <br>-- <br>2.7.2</font></span></div>