drm/armada: fix gem object free after failed prime import
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 15 Jun 2015 09:14:51 +0000 (10:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 15 Jul 2015 15:45:29 +0000 (16:45 +0100)
commit0481c8c47f5e858bfc020a825fd178004c14702d
tree9a2d3fbb7a65918792fbd9b8b36c4602137b074a
parent41dbb2dba20ab951033d71de79d1f9863c8d1c34
drm/armada: fix gem object free after failed prime import

Fix the gem object freeing after a partial import of a dma buffer,
eg, one which has been imported, but not mapped.  This was provoking
a warning from the dma_buf code.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/armada/armada_gem.c