[PATCH weston 11/21] libweston: ensure backend is not loaded twice

Ray, Ian (GE Healthcare) ian.ray at ge.com
Tue Sep 26 06:18:47 UTC 2017


On 22/09/2017, 17.33, "wayland-devel on behalf of Pekka Paalanen" <wayland-devel-bounces at lists.freedesktop.org on behalf of ppaalanen at gmail.com> wrote:
> 
> From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> 
> Check and ensure that a compositor can only load one backend
> successfully. If a backend fails to load, it is theoretically possible
> to try another backend. Once loading succeeds, only destroying the
> compositor would allow "unloading" a backend.
> 
> If backend init fail, ensure the backend pointer remains NULL to avoid
> calling into a half-loaded backend on e.g. compositor destruction.
> 
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Reviewed-by: Ian Ray <ian.ray at ge.com>




More information about the wayland-devel mailing list