diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-10-22 19:40:16 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-10-22 19:40:16 +0200 |
commit | 78c2f0b8c285c5305b3e67b0595200541e15eb43 (patch) | |
tree | 6537a046641e9a3dba3f4735b42d7f04e60e29f8 /crypto/hmac.c | |
parent | 9b61764bcb4360e04386f0415a01da8271631004 (diff) | |
download | lwn-78c2f0b8c285c5305b3e67b0595200541e15eb43.tar.gz lwn-78c2f0b8c285c5305b3e67b0595200541e15eb43.zip |
[SG] Update crypto/ to sg helpers
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'crypto/hmac.c')
-rw-r--r-- | crypto/hmac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/hmac.c b/crypto/hmac.c index 8802fb6dd5a6..e4eb6ac53b5c 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); |