[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6a18ce53-c5c8-5ba9-fe7c-199bd9b4bff6@linux.intel.com>
Date: Thu, 12 May 2022 08:13:59 -0500
From: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
To: Zheng Bin <zhengbin13@...wei.com>, lgirdwood@...il.com,
ranjani.sridharan@...ux.intel.com, kai.vehmanen@...ux.intel.com,
daniel.baluta@....com, broonie@...nel.org, perex@...ex.cz,
tiwai@...e.com, sound-open-firmware@...a-project.org,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Cc: gaochao49@...wei.com
Subject: Re: [PATCH -next] ASoC: SOF: amd: add missing
platform_device_unregister in acp_pci_rn_probe
On 5/11/22 20:37, Zheng Bin wrote:
> acp_pci_rn_probe misses a call platform_device_unregister in error path,
> this patch fixes that.
>
> Signed-off-by: Zheng Bin <zhengbin13@...wei.com>
Thanks for the patch, nice catch
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
> ---
> sound/soc/sof/amd/pci-rn.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/sound/soc/sof/amd/pci-rn.c b/sound/soc/sof/amd/pci-rn.c
> index b8910bb7f27c..d5d9bcc2c997 100644
> --- a/sound/soc/sof/amd/pci-rn.c
> +++ b/sound/soc/sof/amd/pci-rn.c
> @@ -101,6 +101,7 @@ static int acp_pci_rn_probe(struct pci_dev *pci, const struct pci_device_id *pci
> res = devm_kzalloc(&pci->dev, sizeof(struct resource) * ARRAY_SIZE(renoir_res), GFP_KERNEL);
> if (!res) {
> sof_pci_remove(pci);
> + platform_device_unregister(dmic_dev);
> return -ENOMEM;
> }
>
> --
> 2.31.1
>
Powered by blists - more mailing lists