drm/prime: add return check for dma_buf_fd
authorYoungJun Cho <yj44.cho@samsung.com>
Wed, 26 Jun 2013 01:21:42 +0000 (10:21 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 13 Jan 2016 01:29:10 +0000 (10:29 +0900)
commitc3a6f49d012f5c58807408a6a2d51e139e1bddbe
treed5b626ae6eeb81b72d587ec62c043cc6f9af66d0
parent441e66dd642272c8e80ec5ed4000d37676c776d1
drm/prime: add return check for dma_buf_fd

The dma_buf_fd() can return error when it fails to prepare fd,
so the dma_buf needs to be put.

Change-Id: I70f2d15415ef7d02c21b83ce6fbc06958daa5e6f
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c