crypto: cavium - Fix the parameter of dma_unmap_sg()
authorXiang Chen <chenxiang66@hisilicon.com>
Tue, 16 Mar 2021 01:55:24 +0000 (09:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Mar 2021 09:02:34 +0000 (20:02 +1100)
commitc114ecd3a1a3d1e766d0e82ce7a930dfd0d2bce5
tree0414d6e4b4984d19a2090564d66e76fe063a4292
parent5595d0dc1d33b36843166644bb33d94c0e34942e
crypto: cavium - Fix the parameter of dma_unmap_sg()

For function dma_unmap_sg(), the <nents> parameter should be number of
elements in the scatterlist prior to the mapping, not after the mapping.
So fix this usage.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c