Skip to content

Commit 4dd0481

Browse files
ubifs: Convert xattr inum to host order
UBIFS stores inode numbers as LE64 integers. We have to convert them to host oder, otherwise BE hosts won't be able to use the integer correctly. Reported-by: kbuild test robot <[email protected]> Fixes: 9ca2d73 ("ubifs: Limit number of xattrs per inode") Signed-off-by: Richard Weinberger <[email protected]>
1 parent 76aa349 commit 4dd0481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ubifs/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ int ubifs_purge_xattrs(struct inode *host)
527527
fname_name(&nm) = xent->name;
528528
fname_len(&nm) = le16_to_cpu(xent->nlen);
529529

530-
xino = ubifs_iget(c->vfs_sb, xent->inum);
530+
xino = ubifs_iget(c->vfs_sb, le64_to_cpu(xent->inum));
531531
if (IS_ERR(xino)) {
532532
err = PTR_ERR(xino);
533533
ubifs_err(c, "dead directory entry '%s', error %d",

0 commit comments

Comments
 (0)