[Intel-gfx] [PATCH v2] drm/i915/skl: Fix up positive error code
Daniel Vetter
daniel at ffwll.ch
Wed Mar 25 06:34:31 PDT 2015
On Wed, Mar 25, 2015 at 10:15:26AM +0000, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> It should have been negative since it is returned with ERR_PTR().
>
> Introduced in new code commit:
>
> commit 50470bb011c4be278097670bea92462f4e8c8945
> Author: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Date: Mon Mar 23 11:10:36 2015 +0000
>
> drm/i915/skl: Support secondary (rotated) frame buffer mapping
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
Queued for -next, thanks for the patch.
-Daniel
> ---
> drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
> index fc56c11..9903bb0 100644
> --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> @@ -2540,7 +2540,7 @@ intel_rotate_fb_obj_pages(struct i915_ggtt_view *ggtt_view,
> struct sg_table *st;
> unsigned int tile_pitch, tile_height;
> unsigned int width_pages, height_pages;
> - int ret = ENOMEM;
> + int ret = -ENOMEM;
>
> pages = obj->base.size / PAGE_SIZE;
>
> --
> 2.3.2
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the Intel-gfx
mailing list