aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2011-08-08 00:45:28 -0400
committerPaul Mundt <lethal@linux-sh.org>2011-08-08 00:45:28 -0400
commit77c7ee51a062bb595c501ec098125a68999c20c3 (patch)
treec5060ca5786ef353e005dae04b61d2c49967284d /fs/btrfs/ioctl.c
parent1ba762209491e2496e58baffa3fd65d661f54404 (diff)
parent322a8b034003c0d46d39af85bf24fee27b902f48 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into sh-latest
Conflicts: drivers/tty/serial/sh-sci.c Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 0b980afc5edd..7cf013349941 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1749,11 +1749,10 @@ static noinline int btrfs_search_path_in_tree(struct btrfs_fs_info *info,
1749 key.objectid = key.offset; 1749 key.objectid = key.offset;
1750 key.offset = (u64)-1; 1750 key.offset = (u64)-1;
1751 dirid = key.objectid; 1751 dirid = key.objectid;
1752
1753 } 1752 }
1754 if (ptr < name) 1753 if (ptr < name)
1755 goto out; 1754 goto out;
1756 memcpy(name, ptr, total_len); 1755 memmove(name, ptr, total_len);
1757 name[total_len]='\0'; 1756 name[total_len]='\0';
1758 ret = 0; 1757 ret = 0;
1759out: 1758out: