]> www.infradead.org Git - users/hch/block.git/commit
block: allocate bd_meta_info later in add_partitions
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Jul 2021 04:59:10 +0000 (06:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 22 Jul 2021 13:23:46 +0000 (15:23 +0200)
commit29dd2bc64a10eaf67eb1b07e6f9f74ab824245ab
treefdbe17734837d2d79728a194c2f12461696a865d
parent05ed4f689f5275a7aec5e0c8c0c01e891ff82af7
block: allocate bd_meta_info later in add_partitions

Move the allocation of bd_meta_info after initializing the struct device
to avoid the special bdput error handling path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
block/partitions/core.c