drm/exynos: fix build warning to exynos_drm_gem.c
authorInki Dae <daeinki@gmail.com>
Sun, 30 Aug 2015 16:11:53 +0000 (01:11 +0900)
committerInki Dae <daeinki@gmail.com>
Sun, 30 Aug 2015 16:12:36 +0000 (01:12 +0900)
Signed-off-by: Inki Dae <daeinki@gmail.com>
drivers/gpu/drm/exynos/exynos_drm_gem.c

index 67461b77f0401c989599897909bc3106273bb372..62b9ea1b07fb005c04da732490c06e91a2996e21 100644 (file)
@@ -668,7 +668,7 @@ exynos_drm_gem_prime_import_sg_table(struct drm_device *dev,
        exynos_gem_obj = exynos_drm_gem_init(dev, attach->dmabuf->size);
        if (IS_ERR(exynos_gem_obj)) {
                ret = PTR_ERR(exynos_gem_obj);
-               goto err;
+               return ERR_PTR(ret);
        }
 
        exynos_gem_obj->dma_addr = sg_dma_address(sgt->sgl);