Skip to content

Commit

Permalink
ext4 crypto: fix ext4_get_crypto_ctx()'s calling convention in ext4_d…
Browse files Browse the repository at this point in the history
…ecrypt_one

Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
tytso committed Jun 8, 2015
1 parent 42ac184 commit ad0a0ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/ext4/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ad0a0ce

Please sign in to comment.