]> git.baikalelectronics.ru Git - kernel.git/commit
drm/prime: fix to put an exported dma_buf for adding handle failure
authorYoungJun Cho <yj44.cho@samsung.com>
Wed, 26 Jun 2013 01:21:40 +0000 (10:21 +0900)
committerDave Airlie <airlied@redhat.com>
Fri, 28 Jun 2013 02:49:07 +0000 (12:49 +1000)
commit1eeff1df90d5fe9bcf9ad17ef04b14bc1220702e
treef1964a8607f87392a461b71e66aa6f7bb5a3ac3f
parent07f1cba2843a53db9aa7294aa41b4e0d54469dcf
drm/prime: fix to put an exported dma_buf for adding handle failure

When drm_prime_add_buf_handle() returns failure for an exported
dma_buf, the dma_buf was already allocated and its refcount was
increased, so it 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>
drivers/gpu/drm/drm_prime.c