aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorImre Deak <[email protected]>2013-04-19 11:11:56 +1000
committerDave Airlie <[email protected]>2013-05-01 09:40:21 +1000
commit011c2282c74db120f01a8414edc66c3f217f5511 (patch)
tree5e43eb6b5d21e8aa29e88f0398fcdd7ca55abdb5 /lib/memory-notifier-error-inject.c
parent219b47339ced80ca580bb6ce7d1636166984afa7 (diff)
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 <[email protected]> Cc: [email protected] Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions