aboutsummaryrefslogtreecommitdiffstats
path: root/fs/squashfs/xattr.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-29 08:48:58 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-29 08:48:58 -0700
commit162164f7e92da970666e7492fd58644f3c1f8574 (patch)
treec69448e73d24bf83cd412c04d525eb541a84cdc0 /fs/squashfs/xattr.c
parentd8d048f69a618c531575cb1f398a7186f0532ef2 (diff)
parent5f3b321da1aa5936c85ed6dec67358239a9d3cfd (diff)
downloadkernel_samsung_aries-162164f7e92da970666e7492fd58644f3c1f8574.zip
kernel_samsung_aries-162164f7e92da970666e7492fd58644f3c1f8574.tar.gz
kernel_samsung_aries-162164f7e92da970666e7492fd58644f3c1f8574.tar.bz2
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus
* git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus: Squashfs: fix function prototype Squashfs: fix use of __le64 annotated variable
Diffstat (limited to 'fs/squashfs/xattr.c')
-rw-r--r--fs/squashfs/xattr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/squashfs/xattr.c b/fs/squashfs/xattr.c
index 652b854..3876c36 100644
--- a/fs/squashfs/xattr.c
+++ b/fs/squashfs/xattr.c
@@ -158,17 +158,18 @@ static int squashfs_xattr_get(struct inode *inode, int name_index,
strncmp(target, name, name_size) == 0) {
/* found xattr */
if (type & SQUASHFS_XATTR_VALUE_OOL) {
- __le64 xattr;
+ __le64 xattr_val;
+ u64 xattr;
/* val is a reference to the real location */
err = squashfs_read_metadata(sb, &val, &start,
&offset, sizeof(val));
if (err < 0)
goto failed;
- err = squashfs_read_metadata(sb, &xattr, &start,
- &offset, sizeof(xattr));
+ err = squashfs_read_metadata(sb, &xattr_val,
+ &start, &offset, sizeof(xattr_val));
if (err < 0)
goto failed;
- xattr = le64_to_cpu(xattr);
+ xattr = le64_to_cpu(xattr_val);
start = SQUASHFS_XATTR_BLK(xattr) +
msblk->xattr_table;
offset = SQUASHFS_XATTR_OFFSET(xattr);