diff options
| author | Richard Weinberger <richard@nod.at> | 2017-02-01 15:32:09 -0500 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2017-02-06 23:45:28 -0500 |
| commit | b14c8e6afd873cae97060272efaac376efec77a4 (patch) | |
| tree | dddd0856d99a5b7d4c1745cd36b27f50cd8c031e | |
| parent | 46f47e48008b63f5fd3a3bad8b79ba1a89fb625f (diff) | |
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 <richard@nod.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
| -rw-r--r-- | fs/crypto/fscrypt_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/crypto/fscrypt_private.h b/fs/crypto/fscrypt_private.h index e8a229e1d45d..fdbb8af32eaf 100644 --- a/fs/crypto/fscrypt_private.h +++ b/fs/crypto/fscrypt_private.h | |||
| @@ -86,7 +86,7 @@ struct fscrypt_completion_result { | |||
| 86 | 86 | ||
| 87 | #define DECLARE_FS_COMPLETION_RESULT(ecr) \ | 87 | #define DECLARE_FS_COMPLETION_RESULT(ecr) \ |
| 88 | struct fscrypt_completion_result ecr = { \ | 88 | struct fscrypt_completion_result ecr = { \ |
| 89 | COMPLETION_INITIALIZER((ecr).completion), 0 } | 89 | COMPLETION_INITIALIZER_ONSTACK((ecr).completion), 0 } |
| 90 | 90 | ||
| 91 | 91 | ||
| 92 | /* crypto.c */ | 92 | /* crypto.c */ |
