summaryrefslogtreecommitdiff
path: root/drivers/nfc
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-04-19 11:11:56 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-11 07:18:26 -0700
commitc8ff23058da988cfc4b1654178ed9c926b62a10e (patch)
tree19fee38323561dd92833454e5d18fc291fb4b45a /drivers/nfc
parent6f1e6342efdecfa0fb47dc24ecfb7ecb871ee65e (diff)
drm: prime: fix refcounting on the dmabuf import error path
commit 011c2282c74db120f01a8414edc66c3f217f5511 upstream. 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> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions