1
0
Fork 0
remarkable-linux/drivers/staging/omapdrm
Seung-Woo Kim be8a42ae60 drm/prime: drop reference on imported dma-buf come from gem
Increasing ref counts of both dma-buf and gem for imported dma-buf come from gem
makes memory leak. release function of dma-buf cannot be called because f_count
of dma-buf increased by importing gem and gem ref count cannot be decrease
because of exported dma-buf.

So I add dma_buf_put() for imported gem come from its own gem into each drivers
having prime_import and prime_export capabilities. With this, only gem ref
count is increased if importing gem exported from gem of same driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin.park <kyungmin.park@samsung.com>
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Rob Clark <rob.clark@linaro.org>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-01-08 14:41:53 +10:00
..
Kconfig staging: drm/omap: add support for ARCH_MULTIPLATFORM 2012-10-30 11:10:00 -07:00
Makefile staging: drm/omap: dmabuf/prime support 2012-04-10 11:25:59 -07:00
TODO staging: drm/omap: update TODO 2012-07-06 16:11:44 -07:00
omap_connector.c staging/omapdrm: Fix spacing coding style in omap_connector.c 2012-11-14 16:31:02 -08:00
omap_crtc.c staging/omapdrm: Fix spacing coding style in omap_crtc.c 2012-11-14 16:31:03 -08:00
omap_debugfs.c staging: drm/omap: Disable DMM debugfs for OMAP3 2012-03-07 13:38:07 -08:00
omap_dmm_priv.h drm/omap: Fix release of refill engine 2012-10-22 15:46:37 -07:00
omap_dmm_tiler.c staging: drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR 2012-11-16 15:03:10 -08:00
omap_dmm_tiler.h staging: drm/omap: add support for ARCH_MULTIPLATFORM 2012-10-30 11:10:00 -07:00
omap_drm.h
omap_drv.c fbdev changes for 3.8: 2012-12-15 13:03:48 -08:00
omap_drv.h staging/omapdrm: Fix spacing coding style in omap_drv.h 2012-11-14 16:31:03 -08:00
omap_encoder.c staging/omapdrm: Fix spacing coding style in omap_encoder.c 2012-11-14 16:31:03 -08:00
omap_fb.c staging/omapdrm: Fix spacing coding style in omap_fb.c 2012-11-14 16:31:03 -08:00
omap_fbdev.c drm: refcnt drm_framebuffer (v4.1) 2012-10-02 22:15:39 +10:00
omap_gem.c staging/omapdrm: Fix spacing coding style in omap_gem.c 2012-11-14 16:31:04 -08:00
omap_gem_dmabuf.c drm/prime: drop reference on imported dma-buf come from gem 2013-01-08 14:41:53 +10:00
omap_gem_helpers.c staging/omapdrm: Fix spacing coding style in omap_gem_helper.c 2012-11-14 16:31:04 -08:00
omap_plane.c staging/omapdrm: Fix spacing coding style in omap_plane.c 2012-11-14 16:31:05 -08:00
tcm-sita.c staging:omapdrm Fix typos in drivers:omapdrm 2012-04-10 10:31:01 -07:00
tcm-sita.h
tcm.h