diff --git a/[refs] b/[refs] index a2f87352e772..702cf1aa6ceb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 251a2a958b0455d11b711aeeb57cabad66259461 +refs/heads/master: 0da0a420bb542b13ebae142109a9d2045ade0cb1 diff --git a/trunk/security/integrity/ima/ima_crypto.c b/trunk/security/integrity/ima/ima_crypto.c index c2a46e40999d..50d572b74caf 100644 --- a/trunk/security/integrity/ima/ima_crypto.c +++ b/trunk/security/integrity/ima/ima_crypto.c @@ -68,7 +68,7 @@ int ima_calc_hash(struct file *file, char *digest) break; } offset += rbuf_len; - sg_set_buf(sg, rbuf, rbuf_len); + sg_init_one(sg, rbuf, rbuf_len); rc = crypto_hash_update(&desc, sg, rbuf_len); if (rc) @@ -95,7 +95,7 @@ int ima_calc_template_hash(int template_len, void *template, char *digest) if (rc != 0) return rc; - sg_set_buf(sg, template, template_len); + sg_init_one(sg, template, template_len); rc = crypto_hash_update(&desc, sg, template_len); if (!rc) rc = crypto_hash_final(&desc, digest);