linux/drivers/gpu/drm/udl
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 drivers/gpu/drm/udl: remove depends on CONFIG_EXPERIMENTAL 2013-01-11 11:38:05 -08:00
Makefile
udl_connector.c udldrmfb: udl_get_edid: drop unneeded i-- 2013-01-14 08:45:27 +10:00
udl_drv.c UAPI: (Scripted) Convert #include "..." to #include <path/...> in drivers/gpu/ 2012-10-02 18:01:07 +01:00
udl_drv.h drm/udl: make usage as a console safer 2013-02-07 12:37:50 +10:00
udl_encoder.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2012-10-03 23:29:23 -07:00
udl_fb.c drm/<drivers>: simplify ->fb_probe callback 2013-02-14 00:07:58 +01:00
udl_gem.c drm: prime: fix refcounting on the dmabuf import error path 2013-05-01 09:40:21 +10:00
udl_main.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2012-10-03 23:29:23 -07:00
udl_modeset.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2012-10-03 23:29:23 -07:00
udl_transfer.c drm/udl: Inline memcmp() for RLE compression of xfer 2013-02-08 11:52:00 +10:00