summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-06-22 16:28:35 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-06-22 16:28:35 +0200
commitd07ff6523b1ed24d636365f8479b0db70946dc14 (patch)
tree802bf35ed93ee4941e193cac24d0888af917913e /kernel/sysctl_binary.c
parentACPI / PM: Ignore spurious SCI wakeups from suspend-to-idle (diff)
parentthermal: int340x_thermal: fix compile after the UUID API switch (diff)
downloadlinux-d07ff6523b1ed24d636365f8479b0db70946dc14.tar.xz
linux-d07ff6523b1ed24d636365f8479b0db70946dc14.zip
Merge branch 'uuid-types'
Merge branch 'uuid-types' from git://git.infradead.org/users/hch/uuid.git to satisfy dependencies.
Diffstat (limited to 'kernel/sysctl_binary.c')
-rw-r--r--kernel/sysctl_binary.c4
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,
/* Only supports reads */
if (oldval && oldlen) {
char buf[UUID_STRING_LEN + 1];
- uuid_be uuid;
+ uuid_t uuid;
result = kernel_read(file, 0, buf, sizeof(buf) - 1);
if (result < 0)
@@ -1128,7 +1128,7 @@ static ssize_t bin_uuid(struct file *file,
buf[result] = '\0';
result = -EIO;
- if (uuid_be_to_bin(buf, &uuid))
+ if (uuid_parse(buf, &uuid))
goto out;
if (oldlen > 16)