Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299813
b: refs/heads/master
c: 99ba55a
h: refs/heads/master
i:
  299811: 4b8fb6f
v: v3
  • Loading branch information
Stefan Behrens authored and David Sterba committed Apr 18, 2012
1 parent f3647b2 commit a2a598f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9688bb8459b67e42327de6420edb405a9188775
refs/heads/master: 99ba55ad696944b37d5557bc5b4816890854fdb9
5 changes: 4 additions & 1 deletion trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,10 @@ static long btrfs_ioctl_dev_info(struct btrfs_root *root, void __user *arg)
di_args->bytes_used = dev->bytes_used;
di_args->total_bytes = dev->total_bytes;
memcpy(di_args->uuid, dev->uuid, sizeof(di_args->uuid));
strncpy(di_args->path, dev->name, sizeof(di_args->path));
if (dev->name)
strncpy(di_args->path, dev->name, sizeof(di_args->path));
else
di_args->path[0] = '\0';

out:
if (ret == 0 && copy_to_user(arg, di_args, sizeof(*di_args)))
Expand Down

0 comments on commit a2a598f

Please sign in to comment.