diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2012-03-22 21:59:52 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 15:10:43 -0700 |
commit | f132c5be05e407a99cf582347a2ae0120acd3ad7 (patch) | |
tree | f089bbd244aad5d5686360080f93ee9e8592a39d /fs/namei.c | |
parent | ba331d5decbfe1cc8b1bf10fb7005f4b972c4f0e (diff) | |
download | kernel_goldelico_gta04-f132c5be05e407a99cf582347a2ae0120acd3ad7.zip kernel_goldelico_gta04-f132c5be05e407a99cf582347a2ae0120acd3ad7.tar.gz kernel_goldelico_gta04-f132c5be05e407a99cf582347a2ae0120acd3ad7.tar.bz2 |
Fix full_name_hash() behaviour when length is a multiple of 8
We want it to match what hash_name() is doing, which means extra
multiply by 9 in this case...
Reported-and-Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1439,10 +1439,10 @@ unsigned int full_name_hash(const unsigned char *name, unsigned int len) for (;;) { a = *(unsigned long *)name; - hash *= 9; if (len < sizeof(unsigned long)) break; hash += a; + hash *= 9; name += sizeof(unsigned long); len -= sizeof(unsigned long); if (!len) |