Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345529
b: refs/heads/master
c: 1119707
h: refs/heads/master
i:
  345527: f25a35e
v: v3
  • Loading branch information
Prathyush K authored and Inki Dae committed Dec 4, 2012
1 parent b4b57dc commit cfbbe96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ddc404bc0b3750b015b021653a88943591f40f6
refs/heads/master: 1119707e225c1627ed3f413a569e297883946fb2
8 changes: 1 addition & 7 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,15 @@ static struct sg_table *exynos_get_sgt(struct drm_device *drm_dev,
if (!sgt)
goto out;

ret = sg_alloc_table(sgt, buf->sgt->nents, GFP_KERNEL);
if (ret)
goto err_free_sgt;

ret = dma_get_sgtable(drm_dev->dev, sgt, buf->kvaddr,
buf->dma_addr, buf->size);
if (ret < 0) {
DRM_ERROR("failed to get sgtable.\n");
goto err_free_table;
goto err_free_sgt;
}

return sgt;

err_free_table:
sg_free_table(sgt);
err_free_sgt:
kfree(sgt);
sgt = NULL;
Expand Down

0 comments on commit cfbbe96

Please sign in to comment.