aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index a94a7f9a03ea..bd313d680d34 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1439,10 +1439,10 @@ unsigned int full_name_hash(const unsigned char *name, unsigned int len)
1439 1439
1440 for (;;) { 1440 for (;;) {
1441 a = *(unsigned long *)name; 1441 a = *(unsigned long *)name;
1442 hash *= 9;
1443 if (len < sizeof(unsigned long)) 1442 if (len < sizeof(unsigned long))
1444 break; 1443 break;
1445 hash += a; 1444 hash += a;
1445 hash *= 9;
1446 name += sizeof(unsigned long); 1446 name += sizeof(unsigned long);
1447 len -= sizeof(unsigned long); 1447 len -= sizeof(unsigned long);
1448 if (!len) 1448 if (!len)