ntfs_security_hash(): big-endian fix (Erik Larsson)

master
szaka 2007-10-22 18:50:01 +00:00
parent dd8bfdaa67
commit 11dbdf51be
1 changed files with 4 additions and 2 deletions

View File

@ -361,8 +361,10 @@ le32 ntfs_security_hash(const SECURITY_DESCRIPTOR_RELATIVE *sd, const u32 len)
const le32 *end = pos + (len >> 2);
u32 hash = 0;
while (pos < end)
hash = le32_to_cpup(pos++) + ntfs_rol32(hash, 3);
while (pos < end) {
hash = le32_to_cpup(pos) + ntfs_rol32(hash, 3);
pos++;
}
return cpu_to_le32(hash);
}