Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45711
b: refs/heads/master
c: 790816d
h: refs/heads/master
i:
  45709: 9a7302b
  45707: 9f536fa
  45703: b302f78
  45695: c91787f
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jan 23, 2007
1 parent 25b515d commit 16e0982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 58d9ce7d751fa11c6c8ea5dcd4d63b320aae1363
refs/heads/master: 790816dd54e22827f63c8cbb30bd623d3d45e594
2 changes: 1 addition & 1 deletion trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int blk_end_aio(struct bio *bio, unsigned int bytes_done, int error)
iocb->ki_nbytes = -EIO;

if (atomic_dec_and_test(bio_count)) {
if (iocb->ki_nbytes < 0)
if ((long)iocb->ki_nbytes < 0)
aio_complete(iocb, iocb->ki_nbytes, 0);
else
aio_complete(iocb, iocb->ki_left, 0);
Expand Down

0 comments on commit 16e0982

Please sign in to comment.