summaryrefslogtreecommitdiff
path: root/drivers/mfd/bcm590xx.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-12-05 12:42:14 +0300
committerSong Liu <song@kernel.org>2023-12-06 23:44:00 +0300
commitc9f7cb5b2bc968adcdc686c197ed108f47fd8eb0 (patch)
tree6f32704b1646d72ad9ad264d9e312489cba2f296 /drivers/mfd/bcm590xx.c
parentf2d87a759f6841a132e845e2fafdad37385ddd30 (diff)
downloadlinux-c9f7cb5b2bc968adcdc686c197ed108f47fd8eb0.tar.xz
md: don't leave 'MD_RECOVERY_FROZEN' in error path of md_set_readonly()
If md_set_readonly() failed, the array could still be read-write, however 'MD_RECOVERY_FROZEN' could still be set, which leave the array in an abnormal state that sync or recovery can't continue anymore. Hence make sure the flag is cleared after md_set_readonly() returns. Fixes: 88724bfa68be ("md: wait for pending superblock updates before switching to read-only") Signed-off-by: Yu Kuai <yukuai3@huawei.com> Acked-by: Xiao Ni <xni@redhat.com> Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20231205094215.1824240-3-yukuai1@huaweicloud.com
Diffstat (limited to 'drivers/mfd/bcm590xx.c')
0 files changed, 0 insertions, 0 deletions