<div dir="ltr">Pushed with my R-B<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 22, 2016 at 2:03 PM, Arda Coskunses <span dir="ltr"><<a href="mailto:acoskunses@gmail.com" target="_blank">acoskunses@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Without this check driver crash when application window<br>
closed unexpectedly.<br>
</span><span class="">Acked-by: Edward O'Callaghan <<a href="mailto:funfunctor@folklore194.net">funfunctor@folklore194.net</a>><br>
</span>---<br>
 src/vulkan/wsi/wsi_common_x11.<wbr>c | 4 ++++<br>
 1 file changed, 4 insertions(+)<br>
<br>
diff --git a/src/vulkan/wsi/wsi_common_<wbr>x11.c b/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
index 037aa50..345740e 100644<br>
--- a/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
+++ b/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
@@ -261,6 +261,10 @@ VkBool32 wsi_get_physical_device_xcb_<wbr>presentation_support(<br>
<span class="im HOEnZb">    struct wsi_x11_connection *wsi_conn =<br>
       wsi_x11_get_connection(wsi_<wbr>device, alloc, connection);<br>
<br>
+   if (!wsi_conn) {<br>
</span><div class="HOEnZb"><div class="h5">+      return false;<br>
+   }<br>
+<br>
    if (!wsi_conn->has_dri3) {<br>
       fprintf(stderr, "vulkan: No DRI3 support\n");<br>
       return false;<br>
--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div>