dma-buf: Release module reference on creation failure
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 18 Jul 2016 11:16:22 +0000 (12:16 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 18 Jul 2016 12:10:49 +0000 (14:10 +0200)
commita026df4c5fa6bae8eb03b58be720b911494e3da5
tree9f99bd86fcb75d44b15cf938767c01f403619564
parentf39c9096d611a904ee5f8eb1bd6943e68a071b74
dma-buf: Release module reference on creation failure

If we fail to create the anon file, we need to remember to release the
module reference on the owner.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linaro-mm-sig@lists.linaro.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1468840582-21469-1-git-send-email-chris@chris-wilson.co.uk
drivers/dma-buf/dma-buf.c