summaryrefslogtreecommitdiffstats
path: root/kernel/fs/xfs/xfs_symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/xfs/xfs_symlink.c')
-rw-r--r--kernel/fs/xfs/xfs_symlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fs/xfs/xfs_symlink.c b/kernel/fs/xfs/xfs_symlink.c
index 3df411ead..40c076523 100644
--- a/kernel/fs/xfs/xfs_symlink.c
+++ b/kernel/fs/xfs/xfs_symlink.c
@@ -104,7 +104,7 @@ xfs_readlink_bmap(
cur_chunk += sizeof(struct xfs_dsymlink_hdr);
}
- memcpy(link + offset, bp->b_addr, byte_cnt);
+ memcpy(link + offset, cur_chunk, byte_cnt);
pathlen -= byte_cnt;
offset += byte_cnt;