diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2011-10-31 20:12:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:56 -0400 |
commit | 02473119bc54b0b239c2501064c7a37314347f87 (patch) | |
tree | e3f0cdfbe4ee67d089ab731f213b2e0f91a3daa1 /security/keys | |
parent | 50e1499f468fd74c6db95deb2e1e6bfee578ae70 (diff) |
security: follow rename pack_hex_byte() to hex_byte_pack()
There is no functional change.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Mimi Zohar <zohar@us.ibm.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/keys')
-rw-r--r-- | security/keys/encrypted-keys/encrypted.c | 2 | ||||
-rw-r--r-- | security/keys/trusted.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/security/keys/encrypted-keys/encrypted.c b/security/keys/encrypted-keys/encrypted.c index f33804c1b4c8..dcc843cb0f80 100644 --- a/security/keys/encrypted-keys/encrypted.c +++ b/security/keys/encrypted-keys/encrypted.c | |||
@@ -293,7 +293,7 @@ static char *datablob_format(struct encrypted_key_payload *epayload, | |||
293 | /* convert the hex encoded iv, encrypted-data and HMAC to ascii */ | 293 | /* convert the hex encoded iv, encrypted-data and HMAC to ascii */ |
294 | bufp = &ascii_buf[len]; | 294 | bufp = &ascii_buf[len]; |
295 | for (i = 0; i < (asciiblob_len - len) / 2; i++) | 295 | for (i = 0; i < (asciiblob_len - len) / 2; i++) |
296 | bufp = pack_hex_byte(bufp, iv[i]); | 296 | bufp = hex_byte_pack(bufp, iv[i]); |
297 | out: | 297 | out: |
298 | return ascii_buf; | 298 | return ascii_buf; |
299 | } | 299 | } |
diff --git a/security/keys/trusted.c b/security/keys/trusted.c index 0964fc236946..0ed5fdf238a2 100644 --- a/security/keys/trusted.c +++ b/security/keys/trusted.c | |||
@@ -1098,7 +1098,7 @@ static long trusted_read(const struct key *key, char __user *buffer, | |||
1098 | 1098 | ||
1099 | bufp = ascii_buf; | 1099 | bufp = ascii_buf; |
1100 | for (i = 0; i < p->blob_len; i++) | 1100 | for (i = 0; i < p->blob_len; i++) |
1101 | bufp = pack_hex_byte(bufp, p->blob[i]); | 1101 | bufp = hex_byte_pack(bufp, p->blob[i]); |
1102 | if ((copy_to_user(buffer, ascii_buf, 2 * p->blob_len)) != 0) { | 1102 | if ((copy_to_user(buffer, ascii_buf, 2 * p->blob_len)) != 0) { |
1103 | kfree(ascii_buf); | 1103 | kfree(ascii_buf); |
1104 | return -EFAULT; | 1104 | return -EFAULT; |