Commit 4dd04815 authored by Richard Weinberger's avatar Richard Weinberger

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: default avatarkbuild test robot <lkp@intel.com>
Fixes: 9ca2d732 ("ubifs: Limit number of xattrs per inode")
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 76aa3494
......@@ -527,7 +527,7 @@ int ubifs_purge_xattrs(struct inode *host)
fname_name(&nm) = xent->name;
fname_len(&nm) = le16_to_cpu(xent->nlen);
xino = ubifs_iget(c->vfs_sb, xent->inum);
xino = ubifs_iget(c->vfs_sb, le64_to_cpu(xent->inum));
if (IS_ERR(xino)) {
err = PTR_ERR(xino);
ubifs_err(c, "dead directory entry '%s', error %d",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment