diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 2998fe3a2377..c89883be8737 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -1768,10 +1768,10 @@ static int __end_that_request_first(struct request *req, int error, | |||
1768 | } else { | 1768 | } else { |
1769 | int idx = bio->bi_idx + next_idx; | 1769 | int idx = bio->bi_idx + next_idx; |
1770 | 1770 | ||
1771 | if (unlikely(bio->bi_idx >= bio->bi_vcnt)) { | 1771 | if (unlikely(idx >= bio->bi_vcnt)) { |
1772 | blk_dump_rq_flags(req, "__end_that"); | 1772 | blk_dump_rq_flags(req, "__end_that"); |
1773 | printk(KERN_ERR "%s: bio idx %d >= vcnt %d\n", | 1773 | printk(KERN_ERR "%s: bio idx %d >= vcnt %d\n", |
1774 | __func__, bio->bi_idx, bio->bi_vcnt); | 1774 | __func__, idx, bio->bi_vcnt); |
1775 | break; | 1775 | break; |
1776 | } | 1776 | } |
1777 | 1777 | ||