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

N2009_11_14_FIXES
szaka 2007-10-22 18:51:20 +00:00
parent c6830ecc23
commit 5167f7b5dd
1 changed files with 4 additions and 2 deletions

View File

@ -504,8 +504,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);
}