]> git.ipfire.org Git - people/ms/linux.git/commit - block/bio.c
block: call bio_associate_blkg from bio_reset
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Feb 2022 07:19:34 +0000 (08:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Feb 2022 13:32:43 +0000 (06:32 -0700)
commit78e3437450be5236c4949e377c9b848bbcd4fcb0
tree9f7fb0e4b18dd1e6c02ed0b6737be2fe6b06f1ac
parent9574d43479e16352e75bc875c9952ed8e129c9b2
block: call bio_associate_blkg from bio_reset

Call bio_associate_blkg just like bio_set_dev did in the callers before
the conversion to set the block device in bio_reset.

Fixes: a7c50c940477 ("block: pass a block_device and opf to bio_reset")
Reported-by: syzbot+2b3f18414c37b42dcc94@syzkaller.appspotmail.com
Tested-by: syzbot+2b3f18414c37b42dcc94@syzkaller.appspotmail.com
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220204071934.168469-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c