summaryrefslogtreecommitdiff
path: root/vmwgfx_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmwgfx_fb.c')
-rw-r--r--vmwgfx_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmwgfx_fb.c b/vmwgfx_fb.c
index c9f8060..b638edd 100644
--- a/vmwgfx_fb.c
+++ b/vmwgfx_fb.c
@@ -615,7 +615,7 @@ static int vmw_fb_set_par(struct fb_info *info)
ret = vfb->pin(vfb);
if (ret) {
DRM_ERROR("Could not pin the fbdev framebuffer.\n");
- return ret;
+ goto out_unlock;
}
ret = ttm_bo_kmap(&par->vmw_bo->base, 0,
@@ -623,7 +623,7 @@ static int vmw_fb_set_par(struct fb_info *info)
if (ret) {
vfb->unpin(vfb);
DRM_ERROR("Could not map the fbdev framebuffer.\n");
- return ret;
+ goto out_unlock;
}
par->bo_ptr = ttm_kmap_obj_virtual(&par->map, &par->bo_iowrite);