X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=block%2Fblk-core.c;h=c89883be87379d9454ab1af7cd68319e92795597;hb=8e3747c13c39246c7e46def7cf495d9d21d4c5f9;hp=2998fe3a2377811c4603b6eab481fbb1d129d145;hpb=2ea3f868487dcee0bfd91055f1c42bb172efc507;p=deliverable%2Flinux.git 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, } else { int idx = bio->bi_idx + next_idx; - if (unlikely(bio->bi_idx >= bio->bi_vcnt)) { + if (unlikely(idx >= bio->bi_vcnt)) { blk_dump_rq_flags(req, "__end_that"); printk(KERN_ERR "%s: bio idx %d >= vcnt %d\n", - __func__, bio->bi_idx, bio->bi_vcnt); + __func__, idx, bio->bi_vcnt); break; }