commit | ad0a0ce894d554b112afab6a48fd500e636686a6 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Mon Jun 08 11:54:56 2015 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Jun 08 11:54:56 2015 -0400 |
tree | f3221502edb81622db9ed7e9320bc4574f33d675 | |
parent | 42ac1848eac58875ceb081c2ed915d6f07ec1f30 [diff] |
ext4 crypto: fix ext4_get_crypto_ctx()'s calling convention in ext4_decrypt_one Signed-off-by: Theodore Ts'o <tytso@mit.edu>
diff --git a/fs/ext4/crypto.c b/fs/ext4/crypto.c index f5c82e8..4573155 100644 --- a/fs/ext4/crypto.c +++ b/fs/ext4/crypto.c
@@ -396,8 +396,8 @@ struct ext4_crypto_ctx *ctx = ext4_get_crypto_ctx(inode); - if (!ctx) - return -ENOMEM; + if (IS_ERR(ctx)) + return PTR_ERR(ctx); ret = ext4_decrypt(ctx, page); ext4_release_crypto_ctx(ctx); return ret;