linux-sg2042/drivers/gpu/drm/exynos
Imre Deak 011c2282c7 drm: prime: fix refcounting on the dmabuf import error path
In commit be8a42ae60 we inroduced a refcount problem, where on the
drm_gem_prime_fd_to_handle() error path we'll call dma_buf_put() for
self imported dma buffers.

Fix this by taking a reference on the dma buffer in the .gem_import
hook instead of assuming the caller had taken one. Besides fixing the
bug this is also more logical.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-05-01 09:40:21 +10:00
..
Kconfig drm/exynos: Select VIDEOMODE_HELPERS for FIMD 2013-04-29 14:35:32 +09:00
Makefile drm/exynos: add gsc ipp driver 2012-12-15 02:40:00 +09:00
exynos_ddc.c Drivers: gpu: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
exynos_drm_buf.c drm/exynos: fix gem buffer allocation type checking 2013-01-04 15:54:34 +09:00
exynos_drm_buf.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_connector.c drm/exynos: drm_connector: Fix error check condition 2013-04-17 00:07:27 +09:00
exynos_drm_connector.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_core.c drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_crtc.c drm/exynos: move finish page flip to a common place 2013-01-07 13:58:37 +09:00
exynos_drm_crtc.h drm/exynos: move finish page flip to a common place 2013-01-07 13:58:37 +09:00
exynos_drm_dmabuf.c drm: prime: fix refcounting on the dmabuf import error path 2013-05-01 09:40:21 +10:00
exynos_drm_dmabuf.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_drv.c drm/exynos: added ipp device registration to drm driver 2013-04-29 14:35:32 +09:00
exynos_drm_drv.h drm/exynos: added ipp device registration to drm driver 2013-04-29 14:35:32 +09:00
exynos_drm_encoder.c drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_encoder.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_fb.c drm/exynos: release resources properly when fb creation is failed. 2013-02-21 15:00:26 +09:00
exynos_drm_fb.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_fbdev.c drm/<drivers>: simplify ->fb_probe callback 2013-02-14 00:07:58 +01:00
exynos_drm_fbdev.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_fimc.c drm/exynos: add device tree support for fimc ipp driver 2013-04-29 14:35:32 +09:00
exynos_drm_fimc.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_fimd.c drm/exynos: enable FIMD clocks 2013-04-29 14:35:31 +09:00
exynos_drm_g2d.c drm/exynos: Check g2d cmd list for g2d restrictions 2013-03-20 19:09:11 +09:00
exynos_drm_g2d.h drm/exynos: add G2D driver 2012-05-17 20:14:48 +09:00
exynos_drm_gem.c drm/exynos: do not use generic flags to dumb 2013-04-29 14:35:32 +09:00
exynos_drm_gem.h drm/exynos: Add a new function to get gem buffer size 2013-03-20 19:09:11 +09:00
exynos_drm_gsc.c drm: Convert to devm_ioremap_resource() 2013-01-25 12:21:46 -08:00
exynos_drm_gsc.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_hdmi.c exynos/drm: hdmi: cleanup for hdmi common device registration 2013-04-29 14:35:32 +09:00
exynos_drm_hdmi.h drm/exynos: hdmi: move mode_fixup to drm common hdmi 2013-04-17 00:06:42 +09:00
exynos_drm_iommu.c drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_iommu.h drm/exynos: fix iommu address allocation order 2013-02-21 15:00:26 +09:00
exynos_drm_ipp.c drm/exynos: added ipp device registration to drm driver 2013-04-29 14:35:32 +09:00
exynos_drm_ipp.h drm/exynos: change member variable name. 2013-01-04 15:54:33 +09:00
exynos_drm_plane.c drm/exynos: fix fb offset calculation for plane 2012-12-14 15:54:34 +09:00
exynos_drm_plane.h drm/exynos: add plane enable/disable 2012-07-27 11:13:54 +09:00
exynos_drm_rotator.c drm/exynos: drm_rotator: Fix incorrect usage of IS_ERR_OR_NULL 2013-04-17 00:07:25 +09:00
exynos_drm_rotator.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_drm_vidi.c drm/exynos: Replaced kzalloc & memcpy with kmemdup 2013-03-20 19:09:10 +09:00
exynos_drm_vidi.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_hdmi.c drm/exynos: Remove unnecessary braces in exynos_hdmi.c 2013-04-29 14:40:17 +09:00
exynos_hdmi.h drm/exynos: change file license to GPL 2013-01-04 15:54:32 +09:00
exynos_hdmiphy.c Drivers: gpu: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
exynos_mixer.c drm/exynos: Don't blend mixer layer 0 2013-04-29 14:40:20 +09:00
regs-fimc.h drm/exynos: add device tree support for fimc ipp driver 2013-04-29 14:35:32 +09:00
regs-gsc.h drm/exynos: add gsc ipp driver 2012-12-15 02:40:00 +09:00
regs-hdmi.h drm/exynos: add support for hdmiphy power control for exynos5 2012-12-14 15:40:49 +09:00
regs-mixer.h drm: exynos: hdmi: add support for exynos5 mixer 2012-10-05 19:15:10 +09:00
regs-rotator.h drm/exynos: add rotator ipp driver 2012-12-15 02:39:41 +09:00
regs-vp.h drm/exynos: added hdmi display support 2011-12-29 11:21:42 +09:00