drm/etnaviv: fix gem_prime_get_sg_table to return new SG table
authorLucas Stach <l.stach@pengutronix.de>
Wed, 30 Nov 2016 14:26:26 +0000 (15:26 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 2 Dec 2016 18:30:23 +0000 (19:30 +0100)
commit5f4a4a73f437b007019495c3c789599d71b9c59e
tree95266e6635a76cb0ea822cfcc616d4e2ca8f320c
parent557800532ebdec4fc460876af4e3c216d23a184d
drm/etnaviv: fix gem_prime_get_sg_table to return new SG table

The object internal SG table must not be returned, as the caller
will take ownership of the returned table.

Construct a new table from the object pages and return this one
instead.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c