android_kernel_xiaomi_sm8350/block
Kazuhisa Ichikawa af498d7fa3 block: fix the bio_vec array index out-of-bounds test
Current bio_vec array index out-of-bounds test within
__end_that_request_first() does not seem correct.
It checks bio->bi_idx against bio->bi_vcnt, but the subsequent code
uses idx (which is, bio->bi_idx + next_idx) as the array index into
bio_vec array. This means that the test really make sense only at
the first iteration of !(nr_bytes >=bio->bi_size) case (when next_idx
== zero). Fix this by replacing bio->bi_idx with idx.
(This patch applies to 2.6.30-rc4.)

Signed-off-by: Kazuhisa Ichikawa <ki@epsilou.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-05-12 13:27:45 +02:00
..
as-iosched.c as-iosched: get rid of private REQ_SYNC/REQ_ASYNC defines 2009-04-15 08:28:10 +02:00
blk-barrier.c block: Remove code handling bio_alloc failure with __GFP_WAIT 2009-04-15 12:10:12 +02:00
blk-core.c block: fix the bio_vec array index out-of-bounds test 2009-05-12 13:27:45 +02:00
blk-exec.c
blk-integrity.c
blk-ioc.c
blk-map.c
blk-merge.c block: simplify I/O stat accounting 2009-04-24 08:54:21 +02:00
blk-settings.c block: fix queue bounce limit setting 2009-04-22 08:35:09 +02:00
blk-softirq.c
blk-sysfs.c block: simplify I/O stat accounting 2009-04-24 08:54:21 +02:00
blk-tag.c
blk-timeout.c block: fix intermittent dm timeout based oops 2009-04-24 08:54:21 +02:00
blk.h block: simplify I/O stat accounting 2009-04-24 08:54:21 +02:00
bsg.c
cfq-iosched.c cfq-iosched: cache prio_tree root in cfqq->p_root 2009-04-24 08:54:22 +02:00
cmd-filter.c
compat_ioctl.c
deadline-iosched.c
elevator.c block: fix bad spelling of quiesce 2009-04-15 08:28:09 +02:00
genhd.c block: include empty disks in /proc/diskstats 2009-04-22 08:35:10 +02:00
ioctl.c block: Remove code handling bio_alloc failure with __GFP_WAIT 2009-04-15 12:10:12 +02:00
Kconfig
Kconfig.iosched
Makefile
noop-iosched.c
scsi_ioctl.c block: fix SG_IO vector request data length handling 2009-04-22 08:35:09 +02:00