Skip to content

Commit

Permalink
sysctl: switch to use uuid_t
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  • Loading branch information
Christoph Hellwig committed Jun 5, 2017
1 parent 59b9c62 commit 680895d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sysctl_binary.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 680895d

Please sign in to comment.