aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 1c7484038829..59c4af523112 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1935,10 +1935,10 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes)
1935 } else { 1935 } else {
1936 int idx = bio->bi_idx + next_idx; 1936 int idx = bio->bi_idx + next_idx;
1937 1937
1938 if (unlikely(bio->bi_idx >= bio->bi_vcnt)) { 1938 if (unlikely(idx >= bio->bi_vcnt)) {
1939 blk_dump_rq_flags(req, "__end_that"); 1939 blk_dump_rq_flags(req, "__end_that");
1940 printk(KERN_ERR "%s: bio idx %d >= vcnt %d\n", 1940 printk(KERN_ERR "%s: bio idx %d >= vcnt %d\n",
1941 __func__, bio->bi_idx, bio->bi_vcnt); 1941 __func__, idx, bio->bi_vcnt);
1942 break; 1942 break;
1943 } 1943 }
1944 1944