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)
committerDave Airlie <airlied@redhat.com>
Fri, 28 Jun 2013 04:43:04 +0000 (14:43 +1000)
The dma_buf_fd() can return error when it fails to prepare fd,
so the dma_buf needs to be put.

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>

No differences found