aboutsummaryrefslogtreecommitdiffstats
path: root/security/keys/trusted.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/keys/trusted.c')
-rw-r--r--security/keys/trusted.c2
1 files changed, 1 insertions, 1 deletions
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;