From 78c2f0b8c285c5305b3e67b0595200541e15eb43 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 22 Oct 2007 19:40:16 +0200 Subject: [SG] Update crypto/ to sg helpers Signed-off-by: Jens Axboe --- crypto/hmac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/hmac.c') diff --git a/crypto/hmac.c b/crypto/hmac.c index 8802fb6dd5a..e4eb6ac53b5 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c @@ -159,7 +159,8 @@ static int hmac_digest(struct hash_desc *pdesc, struct scatterlist *sg, desc.flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; sg_set_buf(sg1, ipad, bs); - sg1[1].page = (void *)sg; + + sg_set_page(&sg[1], (void *) sg); sg1[1].length = 0; sg_set_buf(sg2, opad, bs + ds); -- cgit v1.2.3