summaryrefslogtreecommitdiffstats
path: root/fs/crypto/bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/crypto/bio.c')
-rw-r--r--fs/crypto/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/crypto/bio.c b/fs/crypto/bio.c
index a409a84f1bca..6181e9526860 100644
--- a/fs/crypto/bio.c
+++ b/fs/crypto/bio.c
@@ -129,7 +129,7 @@ int fscrypt_zeroout_range(const struct inode *inode, pgoff_t lblk,
129 goto errout; 129 goto errout;
130 } 130 }
131 err = submit_bio_wait(bio); 131 err = submit_bio_wait(bio);
132 if ((err == 0) && bio->bi_error) 132 if (err == 0 && bio->bi_status)
133 err = -EIO; 133 err = -EIO;
134 bio_put(bio); 134 bio_put(bio);
135 if (err) 135 if (err)