diff options
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c index fa8e4911d354..3d586f02883e 100644 --- a/fs/ext4/hash.c +++ b/fs/ext4/hash.c | |||
@@ -155,11 +155,11 @@ int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) | |||
155 | /* Check to see if the seed is all zero's */ | 155 | /* Check to see if the seed is all zero's */ |
156 | if (hinfo->seed) { | 156 | if (hinfo->seed) { |
157 | for (i = 0; i < 4; i++) { | 157 | for (i = 0; i < 4; i++) { |
158 | if (hinfo->seed[i]) | 158 | if (hinfo->seed[i]) { |
159 | memcpy(buf, hinfo->seed, sizeof(buf)); | ||
159 | break; | 160 | break; |
161 | } | ||
160 | } | 162 | } |
161 | if (i < 4) | ||
162 | memcpy(buf, hinfo->seed, sizeof(buf)); | ||
163 | } | 163 | } |
164 | 164 | ||
165 | switch (hinfo->hash_version) { | 165 | switch (hinfo->hash_version) { |