Skip to content

Commit

Permalink
fscrypt: properly declare on-stack completion
Browse files Browse the repository at this point in the history
When a completion is declared on-stack we have to use
COMPLETION_INITIALIZER_ONSTACK().

Fixes: 0b81d07 ("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>
  • Loading branch information
Richard Weinberger authored and Theodore Ts'o committed Feb 7, 2017
1 parent 46f47e4 commit b14c8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/crypto/fscrypt_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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 */
Expand Down

0 comments on commit b14c8e6

Please sign in to comment.