staging: android: ion: Duplicate sg_table [1/2]
authorLaura Abbott <labbott@redhat.com>
Mon, 3 Apr 2017 18:57:47 +0000 (11:57 -0700)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:43:08 +0000 (14:43 +0800)
commit260235eeccb7e3c9866fc7a611bd3c6a33228bb0
tree81b7fc336b4a4c4bd71dff3d4d7c5dfabd721b7a
parent26fa2cd4ad1ed471eb741580c19b2aba844f834b
staging: android: ion: Duplicate sg_table [1/2]

PD#SWPL-9254

Problem:
Ion currently returns a single sg_table on each dma_map call. This is
incorrect for later usage.

Solution:
dup sg table on each dma_map call

Verify:
galilei, franklin

Change-Id: I6df2baa33bba9303b2ac25210ebaf56a337d56a2
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
drivers/staging/android/ion/ion.c