mirror of
https://github.com/torvalds/linux.git
synced 2024-10-25 14:40:58 +00:00
ext4 crypto: fix ext4_get_crypto_ctx()'s calling convention in ext4_decrypt_one
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
42ac1848ea
commit
ad0a0ce894
|
@ -396,8 +396,8 @@ int ext4_decrypt_one(struct inode *inode, struct page *page)
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user