summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2019-05-14 15:10:50 -0400
committerRichard Weinberger <richard@nod.at>2019-05-15 15:56:48 -0400
commit4dd0481584d09221849ac8a3af4cd3cefd58c11e (patch)
treed87ca4a752a0e1f8717c1b5ead89e30395814410 /fs
parent76aa349441729d889ba6f1d58e3369d178250ffd (diff)
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 <lkp@intel.com> Fixes: 9ca2d7326444 ("ubifs: Limit number of xattrs per inode") Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c
index acab3181ab35..bcfed27e8997 100644
--- a/fs/ubifs/xattr.c
+++ b/fs/ubifs/xattr.c
@@ -527,7 +527,7 @@ int ubifs_purge_xattrs(struct inode *host)
527 fname_name(&nm) = xent->name; 527 fname_name(&nm) = xent->name;
528 fname_len(&nm) = le16_to_cpu(xent->nlen); 528 fname_len(&nm) = le16_to_cpu(xent->nlen);
529 529
530 xino = ubifs_iget(c->vfs_sb, xent->inum); 530 xino = ubifs_iget(c->vfs_sb, le64_to_cpu(xent->inum));
531 if (IS_ERR(xino)) { 531 if (IS_ERR(xino)) {
532 err = PTR_ERR(xino); 532 err = PTR_ERR(xino);
533 ubifs_err(c, "dead directory entry '%s', error %d", 533 ubifs_err(c, "dead directory entry '%s', error %d",