lib/mpi: Do not do sg_virt
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2016 11:32:22 +0000 (19:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Jul 2016 15:45:18 +0000 (23:45 +0800)
commit127827b9c295db35fa7e49d00ac5d14faeda9461
tree67e4d277b950edc54b1f611ba810c35ad958e253
parent9b45b7bba3d22de52e09df63c50f390a193a3f53
lib/mpi: Do not do sg_virt

Currently the mpi SG helpers use sg_virt which is completely
broken.  It happens to work with normal kernel memory but will
fail with anything that is not linearly mapped.

This patch fixes this by using the SG iterator helpers.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/mpi/mpicoder.c