]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - use dma_map_sg() return code
authorHoria Geantă <horia.geanta@nxp.com>
Fri, 10 Feb 2017 12:07:20 +0000 (14:07 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Feb 2017 05:23:40 +0000 (13:23 +0800)
commit838e0a89e33a6e15492b8e4d700fc64c21ca3587
tree78bcca5ecd87226b07472e82065695e298d27fc3
parentfa0c92db1eb818a36c1b837b5f6da7e95b181247
crypto: caam - use dma_map_sg() return code

dma_map_sg() might coalesce S/G entries, so use the number of S/G
entries returned by it instead of what sg_nents_for_len() initially
returns.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c