diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-17 03:51:09 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-05 10:59:15 -0400 |
commit | 680895d6efe47332d25e49817d2d6781295c1614 (patch) | |
tree | d8c425ba5d1394e5794208a671f17aefced500a9 /kernel/sysctl_binary.c | |
parent | 59b9c6291c4fcacf2e8290d79560aa78edbbbe2e (diff) |
sysctl: switch to use uuid_t
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
-rw-r--r-- | kernel/sysctl_binary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c index ece4b177052b..939a158eab11 100644 --- a/kernel/sysctl_binary.c +++ b/kernel/sysctl_binary.c | |||
@@ -1119,7 +1119,7 @@ static ssize_t bin_uuid(struct file *file, | |||
1119 | /* Only supports reads */ | 1119 | /* Only supports reads */ |
1120 | if (oldval && oldlen) { | 1120 | if (oldval && oldlen) { |
1121 | char buf[UUID_STRING_LEN + 1]; | 1121 | char buf[UUID_STRING_LEN + 1]; |
1122 | uuid_be uuid; | 1122 | uuid_t uuid; |
1123 | 1123 | ||
1124 | result = kernel_read(file, 0, buf, sizeof(buf) - 1); | 1124 | result = kernel_read(file, 0, buf, sizeof(buf) - 1); |
1125 | if (result < 0) | 1125 | if (result < 0) |
@@ -1128,7 +1128,7 @@ static ssize_t bin_uuid(struct file *file, | |||
1128 | buf[result] = '\0'; | 1128 | buf[result] = '\0'; |
1129 | 1129 | ||
1130 | result = -EIO; | 1130 | result = -EIO; |
1131 | if (uuid_be_to_bin(buf, &uuid)) | 1131 | if (uuid_parse(buf, &uuid)) |
1132 | goto out; | 1132 | goto out; |
1133 | 1133 | ||
1134 | if (oldlen > 16) | 1134 | if (oldlen > 16) |