[Mesa-dev] [PATCH] Fix segmentation fault

박영선 cathy.park at lge.com
Mon Oct 29 00:09:12 PDT 2012


Hello, I send this patch one more time.

It segfaulte when a qtwayland execute on kms. (in case only radeon graphic
card)
It happen because don’t copy dri_format of __DRIimage in dri2_dup_image().
I hope you try to check it again.

Best Regards,
YoungSun Park

-----Original Message-----
From: YoungSun Park [mailto:cathy.park at lge.com] 
Sent: Thursday, October 11, 2012 11:50 AM
To: mesa-dev at lists.freedesktop.org
Cc: YoungSun Park
Subject: [PATCH] Fix segmentation fault

The function segfaulted when a qtwayland on kms executed.
It is miss to copy dri_format of __DRIimage in dri2_dup_image().

Signed-off-by: YoungSun Park <cathy.park at lge.com>
---
 src/gallium/state_trackers/dri/drm/dri2.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/state_trackers/dri/drm/dri2.c
b/src/gallium/state_trackers/dri/drm/dri2.c
index 2f83dab..caf3745 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -640,6 +640,7 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate)
    img->dri_components = image->dri_components;
    img->loader_private = loaderPrivate;
 
+   img->dri_format = image->dri_format;
    return img;
 }
 
-- 
1.7.9.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121029/b8c3361d/attachment.html>


More information about the mesa-dev mailing list