[PATCH weston 4/8] compositor-drm: Prevent a crash in the pixman renderer

Pekka Paalanen ppaalanen at gmail.com
Tue May 17 15:00:51 UTC 2016


On Tue, 3 May 2016 15:08:37 +0200
Quentin Glidic <sardemff7+wayland at sardemff7.net> wrote:

> On 02/05/2016 23:40, Emmanuel Gil Peyrot wrote:
> > When pixman is used and no connector could be found (or any other
> > error), drm_backend_create() tried to destroy a gbm_device that would
> > only be created in init_egl(), resulting in a segfault.
> >
> > Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot at collabora.com>
> > ---
> >  src/compositor-drm.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/compositor-drm.c b/src/compositor-drm.c
> > index c11562f..f9a997b 100644
> > --- a/src/compositor-drm.c
> > +++ b/src/compositor-drm.c
> > @@ -3227,7 +3227,8 @@ err_drm_source:
> >  err_udev_input:
> >  	udev_input_destroy(&b->input);
> >  err_sprite:
> > -	gbm_device_destroy(b->gbm);
> > +	if (b->gbm)
> > +		gbm_device_destroy(b->gbm);
> >  	destroy_sprites(b);
> >  err_udev_dev:
> >  	udev_device_unref(drm_device);
> >  
> 
> 
> Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>
> 
> Should land on its own.
> 

Hi,

patches 1, 2 and 4 pushed:
   130ae6e..b8347e3  master -> master

Patch 2 with the long line fix.

The rest we might want to defer for after 1.11.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160517/2d1693c3/attachment.sig>


More information about the wayland-devel mailing list