[PATCH weston] compositor-drm: Zero drmModeAddFB2 data
Quentin Glidic
sardemff7+wayland at sardemff7.net
Thu Aug 18 08:29:52 UTC 2016
On 18/08/2016 02:37, Yong Bakos wrote:
> From: Yong Bakos <ybakos at humanoriented.com>
>
> Initialize arrays of data passed to drmModeAddFB2, just as
> drm_fb_get_from_bo does.
>
> See https://lists.freedesktop.org/archives/wayland-devel/2016-August/030645.html
>
> Signed-off-by: Yong Bakos <ybakos at humanoriented.com>
Thanks, reviewed and pushed:
eb07f36..4b6321f master -> master
Cheers,
> ---
> libweston/compositor-drm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
> index 4825b46..8319d7c 100644
> --- a/libweston/compositor-drm.c
> +++ b/libweston/compositor-drm.c
> @@ -319,7 +319,7 @@ drm_fb_create_dumb(struct drm_backend *b, unsigned width, unsigned height,
> ret = -1;
>
> if (!b->no_addfb2) {
> - uint32_t handles[4], pitches[4], offsets[4];
> + uint32_t handles[4] = { 0 }, pitches[4] = { 0 }, offsets[4] = { 0 };
>
> handles[0] = fb->handle;
> pitches[0] = fb->stride;
>
--
Quentin “Sardem FF7” Glidic
More information about the wayland-devel
mailing list