diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-08-26 09:15:37 +0200 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2013-08-30 00:57:51 +0200 |
commit | 14bbf20c8839eb595753712e15b8786f9cdc5ed8 (patch) | |
tree | 08545e74aa131c7e6522aacbe1e78eb13a352cd7 /drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |
parent | drm: implement experimental render nodes (diff) | |
download | linux-14bbf20c8839eb595753712e15b8786f9cdc5ed8.tar.xz linux-14bbf20c8839eb595753712e15b8786f9cdc5ed8.zip |
drm/vmwgfx: fix error return code in vmw_driver_load()
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@trendmicro.com.cn>
Acked-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 0dcfa6b76c45..1a90f0a2f7e5 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); |