On Tue, Oct 13, 2015 at 5:59 AM, Michel Dänzer <[email protected]> wrote:
> From: Michel Dänzer <[email protected]>
>
> We were printing an error message, but not propagating the failure. That
> would probably lead to trouble down the road.
>
> Signed-off-by: Michel Dänzer <[email protected]>

For the series:
Reviewed-by: Alex Deucher <[email protected]>

> ---
>  src/drmmode_display.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index f010919..4193be4 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -503,6 +503,9 @@ drmmode_crtc_scanout_allocate(xf86CrtcPtr crtc,
>                            bo_handle.u32, &scanout->fb_id);
>         if (ret) {
>                 ErrorF("failed to add rotate fb\n");
> +               amdgpu_bo_unref(&scanout->bo);
> +               scanout->bo = NULL;
> +               return NULL;
>         }
>
>         scanout->width = width;
> --
> 2.6.0
>
> _______________________________________________
> xorg-driver-ati mailing list
> [email protected]
> http://lists.x.org/mailman/listinfo/xorg-driver-ati
_______________________________________________
xorg-driver-ati mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-driver-ati

Reply via email to