diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-08-08 00:45:28 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-08-08 00:45:28 -0400 |
commit | 77c7ee51a062bb595c501ec098125a68999c20c3 (patch) | |
tree | c5060ca5786ef353e005dae04b61d2c49967284d /fs/btrfs/ioctl.c | |
parent | 1ba762209491e2496e58baffa3fd65d661f54404 (diff) | |
parent | 322a8b034003c0d46d39af85bf24fee27b902f48 (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.c | 3 |
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; |
1759 | out: | 1758 | out: |