diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_g2d.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index 3b0da0378acf..28b71125189b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c | |||
@@ -450,7 +450,7 @@ static dma_addr_t *g2d_userptr_get_dma_addr(struct drm_device *drm_dev, | |||
450 | DMA_BIDIRECTIONAL); | 450 | DMA_BIDIRECTIONAL); |
451 | if (ret < 0) { | 451 | if (ret < 0) { |
452 | DRM_ERROR("failed to map sgt with dma region.\n"); | 452 | DRM_ERROR("failed to map sgt with dma region.\n"); |
453 | goto err_free_sgt; | 453 | goto err_sg_free_table; |
454 | } | 454 | } |
455 | 455 | ||
456 | g2d_userptr->dma_addr = sgt->sgl[0].dma_address; | 456 | g2d_userptr->dma_addr = sgt->sgl[0].dma_address; |
@@ -467,8 +467,10 @@ static dma_addr_t *g2d_userptr_get_dma_addr(struct drm_device *drm_dev, | |||
467 | 467 | ||
468 | return &g2d_userptr->dma_addr; | 468 | return &g2d_userptr->dma_addr; |
469 | 469 | ||
470 | err_free_sgt: | 470 | err_sg_free_table: |
471 | sg_free_table(sgt); | 471 | sg_free_table(sgt); |
472 | |||
473 | err_free_sgt: | ||
472 | kfree(sgt); | 474 | kfree(sgt); |
473 | sgt = NULL; | 475 | sgt = NULL; |
474 | 476 | ||