]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vc04_services: call sg_init_table to init scatterlist
authorMichael Zoran <mzoran@crowfest.net>
Fri, 28 Oct 2016 17:58:13 +0000 (10:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:01:43 +0000 (11:01 +0100)
commit19a8de77cd92047e9b4ef7857f5173b7ffdb7bf9
treeeedc39ca7c91c770fca36925919c32735a0eadf7
parent389faf00716c316c8075fe0a39ce24f125cb442d
staging: vc04_services: call sg_init_table to init scatterlist

Call the sg_init_table function to correctly initialze
the DMA scatterlist.  This function is required to completely
initialize the list and is mandatory if DMA debugging is
enabled in the build configuration.

One of the purposes of sg_init_table is to set
the magic "cookie" on each list element and ensure
the chain end is marked.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c