Commit ad0a0ce8 authored by Theodore Ts'o's avatar Theodore Ts'o

ext4 crypto: fix ext4_get_crypto_ctx()'s calling convention in ext4_decrypt_one

Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 42ac1848
...@@ -396,8 +396,8 @@ int ext4_decrypt_one(struct inode *inode, struct page *page) ...@@ -396,8 +396,8 @@ int ext4_decrypt_one(struct inode *inode, struct page *page)
struct ext4_crypto_ctx *ctx = ext4_get_crypto_ctx(inode); struct ext4_crypto_ctx *ctx = ext4_get_crypto_ctx(inode);
if (!ctx) if (IS_ERR(ctx))
return -ENOMEM; return PTR_ERR(ctx);
ret = ext4_decrypt(ctx, page); ret = ext4_decrypt(ctx, page);
ext4_release_crypto_ctx(ctx); ext4_release_crypto_ctx(ctx);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment