]> 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:57:19 +0000 (10:57 -0700)
commit82a8becb9c2c52fc5e67057a43aeded1f0731e7b
tree76dfd085b216468675a0bf0a71b859e005592383
parent358c4bcd8b00452f7e38550cee5ee4fddbca2dfb
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