diff options
author | 2021-02-02 23:54:10 +0800 | |
---|---|---|
committer | 2021-02-02 08:57:56 -0700 | |
commit | 8358c28a5d44bf0223a55a2334086c3707bb4185 (patch) | |
tree | 3a0d5a95e466bf5467e61206c284ae95938af1a0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | md: use rdev_read_only in restart_array (diff) | |
download | wireguard-linux-8358c28a5d44bf0223a55a2334086c3707bb4185.tar.xz wireguard-linux-8358c28a5d44bf0223a55a2334086c3707bb4185.zip |
block: fix memory leak of bvec
bio_init() clears bio instance, so the bvec index has to be set after
bio_init(), otherwise bio->bi_io_vec may be leaked.
Fixes: 3175199ab0ac ("block: split bio_kmalloc from bio_alloc_bioset")
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions