crypto: scatterwalk - Use sg_chain_ptr on chain entries
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 5 Dec 2013 19:09:53 +0000 (13:09 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 Dec 2013 11:58:52 +0000 (19:58 +0800)
commit389a5390583a18e45bc4abd4439291abec5e7a63
treeb9230960727c5ff62e50cccf64e91bd5558ca8e4
parent8ec25c51291681bd68bdc290b35f2e61fa601c21
crypto: scatterwalk - Use sg_chain_ptr on chain entries

Now that scatterwalk_sg_chain sets the chain pointer bit the sg_page
call in scatterwalk_sg_next hits a BUG_ON when CONFIG_DEBUG_SG is
enabled. Use sg_chain_ptr instead of sg_page on a chain entry.

Cc: stable@vger.kernel.org
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/scatterwalk.h