]> git.baikalelectronics.ru Git - kernel.git/commit
drm/prime: fix to check return of dma_map_sg in prime helper
authorYoungJun Cho <yj44.cho@samsung.com>
Mon, 24 Jun 2013 06:34:21 +0000 (15:34 +0900)
committerDave Airlie <airlied@redhat.com>
Fri, 28 Jun 2013 02:45:11 +0000 (12:45 +1000)
commit432785227d55272b359e02ef3c05a53b01df9823
tree9ffabea64b3267066097b5713611c96b074704c7
parent63823c9187e5832b15f3e3e6377d3c7ae4325a8f
drm/prime: fix to check return of dma_map_sg in prime helper

The dma_map_sg(), in map_dma_buf callback operation of prime helper,
can return 0 when it fails to map, so it needs to release related
resources.

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