Skip to content

Commit 81d23c1

Browse files
Zhang Qilonggregkh
authored andcommitted
ASoC: arizona: Fix a wrong free in wm8997_probe
[ Upstream commit 5e7aace ] In the normal path, we should not free the arizona, we should return immediately. It will be free when call remove operation. Fixes: 31833ea ("ASoC: arizona: Move request of speaker IRQs into bus probe") Reported-by: Richard Fitzgerald <rf@opensource.cirrus.com> Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Acked-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20201111130923.220186-2-zhangqilong3@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 941327d commit 81d23c1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎sound/soc/codecs/wm8997.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,8 @@ static int wm8997_probe(struct platform_device *pdev)
11771177
goto err_spk_irqs;
11781178
}
11791179

1180+
return ret;
1181+
11801182
err_spk_irqs:
11811183
arizona_free_spk_irqs(arizona);
11821184

0 commit comments

Comments
 (0)