[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8371335.jOCe9OeWEl@dtor-d630.eng.vmware.com>
Date: Mon, 26 Aug 2013 00:56 -0700
From: Dmitry Torokhov <dtor@...are.com>
To: Wei Yongjun <weiyj.lk@...il.com>
Cc: airlied@...ux.ie, airlied@...hat.com, thellstrom@...are.com,
brianp@...are.com, daniel.vetter@...ll.ch,
yongjun_wei@...ndmicro.com.cn, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/vmwgfx: fix error return code in vmw_driver_load()
On Monday, August 26, 2013 03:15:37 PM Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
>
> Fix to return -ENOMEM in the fence manager init error handling
> case instead of 0, as done elsewhere in this function.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
Acked-by: Dmitry Torokhov <dtor@...are.com>
> ---
> drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 78e2164..6dafefc 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> @@ -622,8 +622,10 @@ static int vmw_driver_load(struct drm_device *dev,
> unsigned long chipset) }
>
> dev_priv->fman = vmw_fence_manager_init(dev_priv);
> - if (unlikely(dev_priv->fman == NULL))
> + if (unlikely(dev_priv->fman == NULL)) {
> + ret = -ENOMEM;
> goto out_no_fman;
> + }
>
> vmw_kms_save_vga(dev_priv);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists