]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: arizona: Fix a wrong free in wm8997_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Wed, 11 Nov 2020 13:09:20 +0000 (21:09 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 12 Nov 2020 15:14:37 +0000 (15:14 +0000)
commit9766d04853841779e79156c852adacf3e850502e
treea5ec35aeaad3c7656fa300954fb5af79dc6424ba
parentca946e94b4f83f3e6d8c2387639072342273a119
ASoC: arizona: Fix a wrong free in wm8997_probe

In the normal path, we should not free the arizona,
we should return immediately. It will be free when
call remove operation.

Fixes: 87ca3a948a4eb ("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>
sound/soc/codecs/wm8997.c