Skip to content

Commit

Permalink
ext4: fix big-endian bug in extent migration code
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
  • Loading branch information
Dmitry Monakhov authored and Theodore Ts'o committed Apr 10, 2013
1 parent 8c8e0ca commit 0b65349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -4756,7 +4756,7 @@ int ext4_ind_migrate(struct inode *inode)
eh = ext_inode_hdr(inode);
ex = EXT_FIRST_EXTENT(eh);
if (ext4_blocks_count(es) > EXT4_MAX_BLOCK_FILE_PHYS ||
eh->eh_depth != 0 || eh->eh_entries > 1) {
eh->eh_depth != 0 || le16_to_cpu(eh->eh_entries) > 1) {
ret = -EOPNOTSUPP;
goto errout;
}
Expand Down

0 comments on commit 0b65349

Please sign in to comment.