aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/crypto/bio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/crypto/bio.c b/fs/crypto/bio.c
index f5b69b9531f6..41dde4578f3b 100644
--- a/fs/crypto/bio.c
+++ b/fs/crypto/bio.c
@@ -37,12 +37,10 @@ static void __fscrypt_decrypt_bio(struct bio *bio, bool done)
37 int ret = fscrypt_decrypt_page(page->mapping->host, page, 37 int ret = fscrypt_decrypt_page(page->mapping->host, page,
38 PAGE_SIZE, 0, page->index); 38 PAGE_SIZE, 0, page->index);
39 39
40 if (ret) { 40 if (ret)
41 WARN_ON_ONCE(1);
42 SetPageError(page); 41 SetPageError(page);
43 } else if (done) { 42 else if (done)
44 SetPageUptodate(page); 43 SetPageUptodate(page);
45 }
46 if (done) 44 if (done)
47 unlock_page(page); 45 unlock_page(page);
48 } 46 }