]> www.infradead.org Git - users/hch/block.git/commit
md/raid1: don't free conf on raid0_run failure
authorChristoph Hellwig <hch@lst.de>
Tue, 4 Jun 2024 17:25:29 +0000 (19:25 +0200)
committerSong Liu <song@kernel.org>
Mon, 10 Jun 2024 19:18:55 +0000 (19:18 +0000)
commit17f91ac0843b50462a9c9c8f18df962338bd3db2
tree3a79b77d8fc9ca76302a47f906198309840b6763
parent35f20acaa3585f25f8356da0ee6bc143e0256522
md/raid1: don't free conf on raid0_run failure

The core md code calls the ->free method which already frees conf.

Fixes: 07f1a6850c5d ("md/raid1: fail run raid1 array when active disk less than one")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240604172607.3185916-3-hch@lst.de
drivers/md/raid1.c