fscrypt: properly declare on-stack completion
Subsystems (2)
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")
Signed-off-by Richard Weinberger <[email protected]>
--- fs/crypto/fscrypt_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 */
Signature · 1 line
2.10.2
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 f2fstree to fs/crypto")
Signed-off-by Richard Weinberger <[email protected]>--- fs/crypto/fscrypt_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/crypto/fscrypt_private.h +0
-0
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
Quoted 6 lines · Richard Weinberger
When a completion is declared on-stack we have to use
COMPLETION_INITIALIZER_ONSTACK().Fixes 0b81d07790726 ("fs crypto: move per-file encryption from f2fstree to fs/crypto")
Signed-off-by Richard Weinberger <[email protected]>
Thanks, applied.
- Ted