Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75103
b: refs/heads/master
c: adfe477
h: refs/heads/master
i:
  75101: 37ba5e3
  75099: 2d1633c
  75095: 3798e57
  75087: c5fab56
  75071: bb3ee8a
v: v3
  • Loading branch information
Milan Broz authored and Alasdair G Kergon committed Dec 20, 2007
1 parent 53c0aaa commit 7ad599a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1622e89099b7cdda20d95a68940067bdddda03c
refs/heads/master: adfe47702c4726b3e045f9f83178def02833be4c
7 changes: 4 additions & 3 deletions trunk/drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ static void crypt_endio(struct bio *clone, int error)
struct crypt_config *cc = io->target->private;
unsigned read_io = bio_data_dir(clone) == READ;

if (unlikely(!bio_flagged(clone, BIO_UPTODATE) && !error))
error = -EIO;

/*
* free the processed pages
*/
Expand All @@ -519,10 +522,8 @@ static void crypt_endio(struct bio *clone, int error)
goto out;
}

if (unlikely(!bio_flagged(clone, BIO_UPTODATE))) {
error = -EIO;
if (unlikely(error))
goto out;
}

bio_put(clone);
kcryptd_queue_crypt(io);
Expand Down

0 comments on commit 7ad599a

Please sign in to comment.