diff options
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c index cb29e474da8e..1687b72def52 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | |||
@@ -214,7 +214,7 @@ struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev, | |||
214 | 214 | ||
215 | 215 | ||
216 | sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); | 216 | sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); |
217 | if (IS_ERR(sgt)) { | 217 | if (IS_ERR_OR_NULL(sgt)) { |
218 | ret = PTR_ERR(sgt); | 218 | ret = PTR_ERR(sgt); |
219 | goto err_buf_detach; | 219 | goto err_buf_detach; |
220 | } | 220 | } |