diff options
author | Imre Deak <imre.deak@intel.com> | 2013-04-19 03:11:56 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-05-01 01:40:21 +0200 |
commit | 011c2282c74db120f01a8414edc66c3f217f5511 (patch) | |
tree | 5e43eb6b5d21e8aa29e88f0398fcdd7ca55abdb5 /scripts/basic/.gitignore | |
parent | drm/prime: keep a reference from the handle to exported dma-buf (v6) (diff) | |
download | linux-011c2282c74db120f01a8414edc66c3f217f5511.tar.xz linux-011c2282c74db120f01a8414edc66c3f217f5511.zip |
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>
Diffstat (limited to 'scripts/basic/.gitignore')
0 files changed, 0 insertions, 0 deletions