[Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault
Brian Paul
brianp at vmware.com
Thu Aug 23 08:18:58 PDT 2012
On 08/22/2012 05:15 PM, Paulo Alcantara wrote:
> From: Paulo Alcantara<pcacjr at profusion.mobi>
> Date: Fri, 17 Aug 2012 14:08:10 -0300
>
>> The segmentation fault occurs when DRI2 is not loaded up and
>> dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's NULL
>> at this point).
>>
>> This patch fixes the segmentation fault by checking if dri2 pointer is
>> not NULL before deferencing it.
>>
>> Signed-off-by: Paulo Alcantara<pcacjr at profusion.mobi>
>> ---
>> src/egl/drivers/dri2/egl_dri2.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Bump...
Looks like Ian give his R-b. I'll push this in a bit.
-Brian
More information about the mesa-dev
mailing list