]> git.baikalelectronics.ru Git - kernel.git/commit
block: Split out bio_list_copy_data()
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 9 May 2018 01:33:54 +0000 (21:33 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 May 2018 19:16:10 +0000 (13:16 -0600)
commit9cafc77180e09178513e1c32dc9554847e576a6a
tree7710877ae0fa69ef957a8087785fb1e7e0d1e06d
parentdf9f887eb5407f6a6893a6b799e7f02d46c21eda
block: Split out bio_list_copy_data()

Found a bug (with ASAN) where we were passing a bio to bio_copy_data()
with bi_next not NULL, when it should have been - a driver had left
bi_next set to something after calling bio_endio().

Since the normal case is only copying single bios, split out
bio_list_copy_data() to avoid more bugs like this in the future.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
drivers/block/pktcdvd.c
include/linux/bio.h