diff options
author | Miklos Szeredi | 2017-07-04 04:05:05 +0200 |
---|---|---|
committer | Miklos Szeredi | 2017-07-04 04:05:05 +0200 |
commit | 7f53b7d047d221b9fe38b9f2203bd4499135be88 (patch) | |
tree | f4832f5881522e80fba861bafe1e7c0cf136e291 /kernel | |
parent | ovl: don't set origin on broken lower hardlink (diff) | |
parent | ACPI: hns_dsaf_acpi_dsm_guid can be static (diff) | |
download | kernel-qcow2-linux-7f53b7d047d221b9fe38b9f2203bd4499135be88.tar.gz kernel-qcow2-linux-7f53b7d047d221b9fe38b9f2203bd4499135be88.tar.xz kernel-qcow2-linux-7f53b7d047d221b9fe38b9f2203bd4499135be88.zip |
Merge tag 'uuid-for-4.13' of git://git.infradead.org/users/hch/uuid into overlayfs-next
UUID/GUID updates:
- introduce the new uuid_t/guid_t types that are going to replace
the somewhat confusing uuid_be/uuid_le types and make the terminology
fit the various specs, as well as the userspace libuuid library.
(me, based on a previous version from Amir)
- consolidated generic uuid/guid helper functions lifted from XFS
and libnvdimm (Amir and me)
- conversions to the new types and helpers (Amir, Andy and me)
Diffstat (limited to 'kernel')
-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, /* 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) |