Home
last modified time | relevance | path

Searched hist:"49 b1f22b567ba1d7d8174950be4398a69d0effb7" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/block/
H A Dblk-merge.cdiff 49b1f22b567ba1d7d8174950be4398a69d0effb7 Mon Feb 18 21:08:19 CST 2019 Ming Lei <ming.lei@redhat.com> 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: dcebd755926b0f39dd1e ("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>