Files
linux/block
Ming Lei 49b1f22b56 block: avoid to READ fields of null bio
rq->bio can be NULL sometimes, such as flush request, so don't
read bio->bi_seg_front_size until this 'bio' is checked as valid.

Cc: Bart Van Assche <bvanassche@acm.org>
Reported-by: Bart Van Assche <bvanassche@acm.org>
Fixes: dcebd75592 ("block: use bio_for_each_bvec() to compute multi-page bvec count")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-02-19 09:19:06 -07:00
..
2019-02-15 08:40:12 -07:00
2018-11-07 13:42:32 -07:00
2019-02-15 08:40:12 -07:00
2018-12-16 19:53:47 -07:00
2019-02-09 15:40:24 -07:00
2018-11-15 12:13:25 -07:00
2018-12-21 08:47:58 -07:00
2018-10-25 11:17:40 -06:00
2018-05-31 10:50:54 -04:00
2018-11-07 13:42:32 -07:00