Skip to contentSkip to conversation

fscrypt: properly declare on-stack completion

PATCH Applied Richard Weinberger 2 participants 3 messages Feb 1, 2017 – Feb 7, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fscrypt: properly declare on-stack completion

When a completion is declared on-stack we have to use COMPLETION_INITIALIZER_ONSTACK().

Fixes 0b81d07790726 ("fs crypto: move per-file encryption from f2fs

tree to fs/crypto")

---
 fs/crypto/fscrypt_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/crypto/fscrypt_private.h +1 -1
index aeab032d7d35..a0494a164f97 100644
@@ -81,7 +81,7 @@ struct fscrypt_completion_result {
 
 #define DECLARE_FS_COMPLETION_RESULT(ecr) \
 	struct fscrypt_completion_result ecr = { \
-		COMPLETION_INITIALIZER((ecr).completion), 0 }
+		COMPLETION_INITIALIZER_ONSTACK((ecr).completion), 0 }
 
 
 /* crypto.c */
Signature · 1 line
2.10.2
#1 lore raw

Am 01.02.2017 um 21:32 schrieb Richard Weinberger:

Quoted 17 lines

When a completion is declared on-stack we have to use COMPLETION_INITIALIZER_ONSTACK().

Fixes 0b81d07790726 ("fs crypto: move per-file encryption from f2fs

tree to fs/crypto")

---
 fs/crypto/fscrypt_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/crypto/fscrypt_private.h +0 -0
index aeab032d7d35..a0494a164f97 100644

fs/crypto/fscrypt_private.h struct fscrypt_completion_result { · line 87

Quoted 8 lines
fs/crypto/fscrypt_private.h +1 -1
@@ -81,7 +81,7 @@ struct fscrypt_completion_result {
 
 #define DECLARE_FS_COMPLETION_RESULT(ecr) \
 	struct fscrypt_completion_result ecr = { \
-		COMPLETION_INITIALIZER((ecr).completion), 0 }
+		COMPLETION_INITIALIZER_ONSTACK((ecr).completion), 0 }
 
 
 /* crypto.c */

Replying with Ted's corrected mail address... ;-\

Thanks,
//richard