[CRYPTO] scatterwalk: Restore custom sg chaining for now
[linux-3.10.git] / crypto / gcm.c
index 27483f361e8027cecdfa67068cc5e028d91ae0d5..502da929a5fc8f9e0eeec134edc4e293abde9796 100644 (file)
@@ -100,7 +100,7 @@ static void crypto_gcm_ghash_update_sg(struct crypto_gcm_ghash_ctx *ctx,
                n = scatterwalk_clamp(&walk, len);
 
                if (!n) {
-                       scatterwalk_start(&walk, sg_next(walk.sg));
+                       scatterwalk_start(&walk, scatterwalk_sg_next(walk.sg));
                        n = scatterwalk_clamp(&walk, len);
                }