From 244b2c5ca8b14627e4a17755e5922221e121c771 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 09 Oct 2024 06:15:07 +0000
Subject: [PATCH] change system file
---
kernel/fs/ext4/hash.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/kernel/fs/ext4/hash.c b/kernel/fs/ext4/hash.c
index 326b4d2..aeec7a2 100644
--- a/kernel/fs/ext4/hash.c
+++ b/kernel/fs/ext4/hash.c
@@ -233,6 +233,7 @@
break;
case DX_HASH_HALF_MD4_UNSIGNED:
str2hashbuf = str2hashbuf_unsigned;
+ fallthrough;
case DX_HASH_HALF_MD4:
p = name;
while (len > 0) {
@@ -246,6 +247,7 @@
break;
case DX_HASH_TEA_UNSIGNED:
str2hashbuf = str2hashbuf_unsigned;
+ fallthrough;
case DX_HASH_TEA:
p = name;
while (len > 0) {
@@ -294,7 +296,8 @@
unsigned char *buff;
struct qstr qstr = {.name = name, .len = len };
- if (len && needs_casefold(dir) && um) {
+ if (len && IS_CASEFOLDED(dir) && um &&
+ (!IS_ENCRYPTED(dir) || fscrypt_has_encryption_key(dir))) {
buff = kzalloc(sizeof(char) * PATH_MAX, GFP_KERNEL);
if (!buff)
return -ENOMEM;
--
Gitblit v1.6.2