Skip to content

Commit c56605c

Browse files
sandeengregkh
authored andcommitted
xfs: fix unaligned access in xfs_btree_visit_blocks
commit a4d768e702de224cc85e0c8eac9311763403b368 upstream. This structure copy was throwing unaligned access warnings on sparc64: Kernel unaligned access at TPC[1043c088] xfs_btree_visit_blocks+0x88/0xe0 [xfs] xfs_btree_copy_ptrs does a memcpy, which avoids it. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9f7b5da commit c56605c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/libxfs/xfs_btree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4064,7 +4064,7 @@ xfs_btree_change_owner(
40644064
xfs_btree_readahead_ptr(cur, ptr, 1);
40654065

40664066
/* save for the next iteration of the loop */
4067-
lptr = *ptr;
4067+
xfs_btree_copy_ptrs(cur, &lptr, ptr, 1);
40684068
}
40694069

40704070
/* for each buffer in the level */

0 commit comments

Comments
 (0)