]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: ixp4xx - Fix handling of chained sg buffers
authorChristian Hohnstaedt <chohnstaedt@innominate.com>
Fri, 27 Mar 2009 07:09:05 +0000 (15:09 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:24:54 +0000 (10:24 -0700)
commit5a80273150a8a1725fa70418d106eb1f2ee8fd2f
treee3e98a8f8686c3a762e5e3877b3df96c6ac3e449
parenta046c93a8bc34da2d41b777a785436e9dfa92180
crypto: ixp4xx - Fix handling of chained sg buffers

commit 0d44dc59b2b434b29aafeae581d06f81efac7c83 upstream.

 - keep dma functions away from chained scatterlists.
   Use the existing scatterlist iteration inside the driver
   to call dma_map_single() for each chunk and avoid dma_map_sg().

Signed-off-by: Christian Hohnstaedt <chohnstaedt@innominate.com>
Tested-By: Karl Hiramoto <karl@hiramoto.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/crypto/ixp4xx_crypto.c